diff options
| author | bunnei <bunneidev@gmail.com> | 2018-03-23 20:48:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-23 20:48:26 -0400 |
| commit | a397a9e9a4bad1ed03229082408b7fa424295530 (patch) | |
| tree | 3f4766c0bc490d10cf89377475c23fa237e2bba2 /src/core/file_sys/filesystem.h | |
| parent | 68658ce4b095e41b50bdd5c91620407845c08779 (diff) | |
| parent | 4c06d55a81304d0e658adf441d8bdb90a32ba228 (diff) | |
Merge pull request #255 from Subv/sd_card
FS: Implemented access to the SD card
Diffstat (limited to 'src/core/file_sys/filesystem.h')
| -rw-r--r-- | src/core/file_sys/filesystem.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/file_sys/filesystem.h b/src/core/file_sys/filesystem.h index 94ad2abf2..399427ca2 100644 --- a/src/core/file_sys/filesystem.h +++ b/src/core/file_sys/filesystem.h @@ -27,7 +27,7 @@ enum LowPathType : u32 { Wchar = 4, }; -enum EntryType : u32 { +enum EntryType : u8 { Directory = 0, File = 1, }; @@ -35,6 +35,7 @@ enum EntryType : u32 { enum class Mode : u32 { Read = 1, Write = 2, + Append = 4, }; class Path { @@ -103,7 +104,7 @@ public: * @param path Path relative to the archive * @return Result of the operation */ - virtual ResultCode CreateDirectory(const Path& path) const = 0; + virtual ResultCode CreateDirectory(const std::string& path) const = 0; /** * Delete a directory specified by its path @@ -149,7 +150,8 @@ public: * @param path Path relative to the archive * @return Opened directory, or error code */ - virtual ResultVal<std::unique_ptr<DirectoryBackend>> OpenDirectory(const Path& path) const = 0; + virtual ResultVal<std::unique_ptr<DirectoryBackend>> OpenDirectory( + const std::string& path) const = 0; /** * Get the free space |
