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.
Dependencies: DM_FATFileSystem EthernetInterface HTTPClient mbed-rtos mbed-src
Fork of DMSupport by
Diff: FileSystems/QSPIFileSystem.cpp
- Revision:
- 33:8a0a99d54bf8
- Parent:
- 29:b1ec19000e15
--- a/FileSystems/QSPIFileSystem.cpp Thu Feb 19 12:23:04 2015 +0000
+++ b/FileSystems/QSPIFileSystem.cpp Thu Feb 19 14:41:14 2015 +0100
@@ -1405,6 +1405,11 @@
DirHandle *QSPIFileSystem::opendir(const char *name)
{
if (isformatted()) {
+ if (*name == '\0') {
+ // opendir("/qspi/") will result in a call to this function with name=""
+ return QSPIDirHandle::openDir(name);
+ }
+
FileHandle* fh = open(name, O_RDONLY);
if (fh != NULL) {
// Attempting to open a file as a dir
