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: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
Diff: mbed/mod/ModLocalFileSystem.h
- Revision:
- 48:00d211aac2ec
- Parent:
- 43:a182f2b5ff41
- Child:
- 111:f525c6e5e27b
--- a/mbed/mod/ModLocalFileSystem.h Sun Jul 28 01:07:37 2013 +0000 +++ b/mbed/mod/ModLocalFileSystem.h Wed Aug 07 13:53:02 2013 +0000 @@ -25,12 +25,26 @@ */ class ModLocalFileSystem:ModBaseClass { + private: + /** file system type*/ + unsigned char _fs_type; public: - - ModLocalFileSystem(const char* i_path); + const static unsigned char FST_DEFAULT=0x00; + const static unsigned char FST_SDFATFS=0x01; + public: + /** + * @param i_fs_type + * Filesystem type. + * This value should match the file system type of mount point. + * <ul> + * <li>FST_DEFAULT - default filesystem(eg. mbed local.)</li> + * <li>FST_SDFATFS - for SD filesystem</li> + * </ul> + */ + ModLocalFileSystem(const char* i_path,unsigned char i_fs_type=FST_DEFAULT); ModLocalFileSystem(); virtual ~ModLocalFileSystem(); - void setParam(const char* i_path); + void setParam(const char* i_path,unsigned char i_fs_type=FST_DEFAULT); bool execute(HttpdConnection& i_connection); };