summaryrefslogtreecommitdiff
path: root/src/common/file_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index ff01bf0ff..090907c03 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -84,7 +84,7 @@ bool CreateEmptyFile(const std::string& filename);
84 * @return whether handling the entry succeeded 84 * @return whether handling the entry succeeded
85 */ 85 */
86using DirectoryEntryCallable = std::function<bool( 86using DirectoryEntryCallable = std::function<bool(
87 unsigned* num_entries_out, const std::string& directory, const std::string& virtual_name)>; 87 u64* num_entries_out, const std::string& directory, const std::string& virtual_name)>;
88 88
89/** 89/**
90 * Scans a directory, calling the callback for each file/directory contained within. 90 * Scans a directory, calling the callback for each file/directory contained within.
@@ -95,7 +95,7 @@ using DirectoryEntryCallable = std::function<bool(
95 * @param callback The callback which will be called for each entry 95 * @param callback The callback which will be called for each entry
96 * @return whether scanning the directory succeeded 96 * @return whether scanning the directory succeeded
97 */ 97 */
98bool ForeachDirectoryEntry(unsigned* num_entries_out, const std::string& directory, 98bool ForeachDirectoryEntry(u64* num_entries_out, const std::string& directory,
99 DirectoryEntryCallable callback); 99 DirectoryEntryCallable callback);
100 100
101/** 101/**
@@ -105,8 +105,8 @@ bool ForeachDirectoryEntry(unsigned* num_entries_out, const std::string& directo
105 * @param recursion Number of children directories to read before giving up. 105 * @param recursion Number of children directories to read before giving up.
106 * @return the total number of files/directories found 106 * @return the total number of files/directories found
107 */ 107 */
108unsigned ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry, 108u64 ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry,
109 unsigned int recursion = 0); 109 unsigned int recursion = 0);
110 110
111// deletes the given directory and anything under it. Returns true on success. 111// deletes the given directory and anything under it. Returns true on success.
112bool DeleteDirRecursively(const std::string& directory, unsigned int recursion = 256); 112bool DeleteDirRecursively(const std::string& directory, unsigned int recursion = 256);