Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: cc3000_ping_demo_try_2
Fork of mbed by
Diff: LocalFileSystem.h
- Revision:
- 8:00a04e5cd407
- Parent:
- 4:5d1359a283bc
- Child:
- 9:cf0d45ce28a6
--- a/LocalFileSystem.h Fri Jan 23 16:26:21 2009 +0000
+++ b/LocalFileSystem.h Tue Feb 03 18:02:02 2009 +0000
@@ -25,6 +25,14 @@
* > FILE *fp = fopen("/local/out.txt", "w"); // Open "out.txt" on the local file system for writing
* > fprintf(fp, "Hello World!");
* > fclose(fp);
+ * > remove("/local/out.txt"); // Removes the file "out.txt" from the local file system
+ * >
+ * > DIR *d = opendir("/local"); // Opens the root directory of the local file system
+ * > struct dirent *p;
+ * > while((p = readdir(d)) != NULL) { // Print the names of the files in the local file system
+ * > printf("%s\n", p->d_name); // to stdout.
+ * > }
+ * > closedir(d);
* > }
*
* Implementation Notes:
@@ -44,7 +52,7 @@
virtual FileHandle *open(const char* name, int flags);
virtual int remove(const char *filename);
-
+ virtual DirHandle *opendir(const char *name);
};
} // namespace mbed
