summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/disk_filesystem.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/disk_filesystem.cpp b/src/core/file_sys/disk_filesystem.cpp
index e2092b9df..e02b20faf 100644
--- a/src/core/file_sys/disk_filesystem.cpp
+++ b/src/core/file_sys/disk_filesystem.cpp
@@ -123,8 +123,10 @@ ResultVal<FileSys::EntryType> Disk_FileSystem::GetEntryType(const std::string& p
123 return ERROR_PATH_NOT_FOUND; 123 return ERROR_PATH_NOT_FOUND;
124 } 124 }
125 125
126 // TODO(Subv): Find out the EntryType values 126 if (FileUtil::IsDirectory(full_path))
127 UNIMPLEMENTED_MSG("Unimplemented GetEntryType"); 127 return MakeResult(EntryType::Directory);
128
129 return MakeResult(EntryType::File);
128} 130}
129 131
130ResultVal<size_t> Disk_Storage::Read(const u64 offset, const size_t length, u8* buffer) const { 132ResultVal<size_t> Disk_Storage::Read(const u64 offset, const size_t length, u8* buffer) const {