@@ -14,144 +14,144 @@ class UFile;
14
14
class Folder {
15
15
16
16
public:
17
- /*
17
+ /* *
18
18
* @brief Blank Constructor.
19
19
*/
20
20
Folder ();
21
21
22
- /*
22
+ /* *
23
23
* @brief Constructor.
24
24
* @param const char * dirname - The name of the directory.
25
25
*/
26
26
Folder (const char * dirname);
27
27
28
- /*
28
+ /* *
29
29
* @brief Constructor.
30
30
* @param String dirname - The name of the directory.
31
31
*/
32
32
Folder (String dirname);
33
33
34
- /*
34
+ /* *
35
35
* @brief Creates a file inside the directory.
36
36
* @param const char * fileName - The name of the file to create.
37
37
* @return A File object if successfull, NULL if not.
38
38
*/
39
39
UFile createFile (const char * fileName, FileMode fmode);
40
40
41
- / *
41
+ /* *
42
42
* @brief Creates a file inside the directory.
43
43
* @param String fileName - The name of the file to create.
44
44
* @return A File object if successfull, NULL if not.
45
45
*/
46
46
UFile createFile (String fileName, FileMode fmode);
47
47
48
- /*
48
+ /* *
49
49
* @brief Removes a directory.
50
50
* @param dirname The name of the directory to remove.
51
51
* @return True if the directory was removed successfully, false otherwise.
52
52
*/
53
53
bool remove ();
54
54
55
- /*
55
+ /* *
56
56
* @brief Renames a directory.
57
57
* @param const char * newDirname The new name of the directory.
58
58
* @return True if the directory was renamed successfully, false otherwise.
59
59
*/
60
60
bool rename (const char * newDirname);
61
61
62
- /*
62
+ /* *
63
63
* @brief Renames a directory.
64
64
* @param String newDirname The new name of the directory.
65
65
* @return True if the directory was renamed successfully, false otherwise.
66
66
*/
67
67
bool rename (String newDirname);
68
68
69
- /*
69
+ /* *
70
70
* @brief Checks if the directory exists.
71
71
* @return True if the directory exists, false otherwise.
72
72
*/
73
73
bool exists ();
74
74
75
- /*
75
+ /* *
76
76
* @brief Returns the path of the file.
77
77
* @return The path of the file as a const char *
78
78
*/
79
79
const char * getPath ();
80
80
81
- /*
81
+ /* *
82
82
* @brief Returns the path of the file.
83
83
* @return The path of the file as an Arduino String
84
84
*/
85
85
String getPathString ();
86
86
87
- /*
87
+ /* *
88
88
* @brief Creates a subfolder in the directory.
89
89
* @param const char * subfolderName - he name of the subfolder to create.
90
90
* @param overwrite - behaviour in case the folder already exists, default is false
91
91
* @return The created subfolder.
92
92
*/
93
93
Folder createSubfolder (const char * subfolderName, bool overwrite = false );
94
94
95
- /*
95
+ /* *
96
96
* @brief Creates a subfolder in the directory.
97
97
* @param String subfolderName - he name of the subfolder to create.
98
98
* @param overwrite - behaviour in case the folder already exists, default is false
99
99
* @return The created subfolder.
100
100
*/
101
101
Folder createSubfolder (String subfolderName, bool overwrite = false );
102
102
103
- /*
103
+ /* *
104
104
* @brief Returns File objects for all files in the current dirctory.
105
105
* @return A std::vector of File objects representing the files in the directory.
106
106
*/
107
107
std::vector<UFile> getFiles ();
108
108
109
- / *
109
+ /* *
110
110
* @brief Returns Folder objects for all files in the current dirctory.
111
111
* @return A std::vector of Folder objects representing the files in the directory.
112
112
*/
113
113
std::vector<Folder> getFolders ();
114
114
115
- /*
115
+ /* *
116
116
* @brief Copies the current directory
117
117
* @param Folder destination - a Folder object representing the destination
118
118
* @return True upon success, false otherwise.
119
119
*/
120
120
bool copyTo (Folder destination, bool overwrite = false );
121
121
122
- /*
122
+ /* *
123
123
* @brief Copies the current directory
124
124
* @param const char * destination - the path of the destination location
125
125
* @param overwrite - behaviour in case the folder already exists, default is false
126
126
* @return True upon success, false otherwise.
127
127
*/
128
128
bool copyTo (const char * destination, bool overwrite = false );
129
129
130
- /*
130
+ /* *
131
131
* @brief Copies the current directory
132
132
* @param String destination - the path of the destination location
133
133
* @param overwrite - behaviour in case the folder already exists, default is false
134
134
* @return True upon success, false otherwise.
135
135
*/
136
136
bool copyTo (String destination, bool overwrite = false );
137
137
138
- /*
138
+ /* *
139
139
* @brief Moves the current directory
140
140
* @param Folder destination - a Folder object representing the destination
141
141
* @param overwrite - behaviour in case the folder already exists, default is false
142
142
* @return True upon success, false otherwise.
143
143
*/
144
144
bool moveTo (Folder destination, bool overwrite = false );
145
145
146
- /*
146
+ /* *
147
147
* @brief Moves the current directory
148
148
* @param const char * destination - the path of the destination location
149
149
* @param overwrite - behaviour in case the folder already exists, default is false
150
150
* @return True upon success, false otherwise.
151
151
*/
152
152
bool moveTo (const char * destination, bool overwrite = false );
153
153
154
- /*
154
+ /* *
155
155
* @brief Move the current directory
156
156
* @param String destination - the path of the destination location
157
157
* @param overwrite - behaviour in case the folder already exists, default is false
0 commit comments