@@ -30,18 +30,24 @@ namespace mbed {
30
30
*/
31
31
32
32
33
- /* * Represents a directory stream. Objects of this type are returned
34
- * by an opendir function . The core functions are read and seek,
33
+ /* * Represents a directory stream. An opendir function returns
34
+ * objects of this type . The core functions are read and seek,
35
35
* but only a subset needs to be provided.
36
36
*
37
- * If a FileSystemLike class defines the opendir method, then the
38
- * directories of an object of that type can be accessed by
39
- * DIR *d = opendir("/example/directory") (or opendir("/example")
40
- * to open the root of the filesystem), and then using readdir(d) etc.
37
+ * If a FileSystemLike class defines the opendir method, then you
38
+ * can access the directories of an object of that type by either:
39
+ * @code
40
+ * DIR *d = opendir("/example/directory");
41
+ * @endcode
42
+ * or
43
+ * @code
44
+ * DIR *d = opendir("/example");
45
+ * @endcode
46
+ * to open the root of the file system.
41
47
*
42
48
* The root directory is considered to contain all FileHandle and
43
- * FileSystem objects, so the DIR* returned by opendir("/") will
44
- * reflect this.
49
+ * FileSystem objects, so the DIR pointer returned by opendir("/")
50
+ * reflects this.
45
51
*
46
52
* @note to create a directory, @see Dir
47
53
* @note Synchronization level: Set by subclass
@@ -113,7 +119,7 @@ class DirHandle : private NonCopyable<DirHandle> {
113
119
return close ();
114
120
};
115
121
116
- /* * Return the directory entry at the current position, and
122
+ /* * Returns the directory entry at the current position, and
117
123
* advances the position to the next entry.
118
124
*
119
125
* @returns
0 commit comments