Merge branch 'kegilbert-patch-6-1' of ssh://github.com/ARMmbed/mbed-os into rollup

pull/8475/head
Cruz Monrreal II 2018-10-18 20:01:36 -05:00
commit 1c1432e8e7
1 changed files with 15 additions and 9 deletions

View File

@ -30,18 +30,24 @@ namespace mbed {
*/ */
/** Represents a directory stream. Objects of this type are returned /** Represents a directory stream. An opendir function returns
* by an opendir function. The core functions are read and seek, * objects of this type. The core functions are read and seek,
* but only a subset needs to be provided. * but only a subset needs to be provided.
* *
* If a FileSystemLike class defines the opendir method, then the * If a FileSystemLike class defines the opendir method, then you
* directories of an object of that type can be accessed by * can access the directories of an object of that type by either:
* DIR *d = opendir("/example/directory") (or opendir("/example") * @code
* to open the root of the filesystem), and then using readdir(d) etc. * DIR *d = opendir("/example/directory");
* @endcode
* or
* @code
* DIR *d = opendir("/example");
* @endcode
* to open the root of the file system.
* *
* The root directory is considered to contain all FileHandle and * The root directory is considered to contain all FileHandle and
* FileSystem objects, so the DIR* returned by opendir("/") will * FileSystem objects, so the DIR pointer returned by opendir("/")
* reflect this. * reflects this.
* *
* @note to create a directory, @see Dir * @note to create a directory, @see Dir
* @note Synchronization level: Set by subclass * @note Synchronization level: Set by subclass
@ -113,7 +119,7 @@ public:
return close(); return close();
}; };
/** Return the directory entry at the current position, and /** Returns the directory entry at the current position, and
* advances the position to the next entry. * advances the position to the next entry.
* *
* @returns * @returns