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.
Fork of mbed-src by
Diff: cpp/FileSystemLike.cpp
- Revision:
- 1:62685faffa05
- Parent:
- 0:fd0d7bdfcdc2
- Child:
- 2:143cac498751
--- a/cpp/FileSystemLike.cpp Tue Nov 20 17:24:08 2012 +0000 +++ b/cpp/FileSystemLike.cpp Thu Nov 29 15:41:14 2012 +0000 @@ -131,16 +131,16 @@ file_name = file_system; int len = 0; while (true) { - char c = *file_name++; + char c = *file_name; if (c == '/') { // end of object name - /* file now points to one char after the '/' */ + file_name++; // point to one char after the '/' break; } if (c == 0) { // end of object name, with no filename - file_name = NULL; break; } len++; + file_name++; } fs = FileSystemLike::lookup(file_system, len); @@ -154,9 +154,4 @@ return fs; } -FileSystemLike* FilePath::getFileSystem(const char* path) { - FilePath f(path); - return f.fs; -} - } // namespace mbed