diff options
| author | JosJuice <josjuice@gmail.com> | 2016-12-25 21:57:33 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2016-12-25 21:57:33 +0100 |
| commit | e56bec9c87cd4842c945411caf9726d246acc65c (patch) | |
| tree | 9fbe08532152f6aee8981645b212471b4109ef6a /Source/Core/Common/FileUtil.cpp | |
| parent | 09c6148abaaad47bec90ffa8c43b9fff28db2bfd (diff) | |
Fix outdated comments in ScanDirectoryTree
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/FileUtil.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index e761f3ade1..2a70b6dfe0 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -439,12 +439,10 @@ bool CreateEmptyFile(const std::string& filename) return true; } -// Scans the directory tree gets, starting from _Directory and adds the -// results into parentEntry. Returns the number of files+directories found +// Recursive or non-recursive list of files and directories under directory. FSTEntry ScanDirectoryTree(const std::string& directory, bool recursive) { INFO_LOG(COMMON, "ScanDirectoryTree: directory %s", directory.c_str()); - // How many files + directories we found FSTEntry parent_entry; parent_entry.physicalName = directory; parent_entry.isDirectory = true; @@ -505,7 +503,7 @@ FSTEntry ScanDirectoryTree(const std::string& directory, bool recursive) } closedir(dirp); #endif - // Return number of entries found. + return parent_entry; } |
