diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-13 20:13:37 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-18 17:25:03 -0500 |
| commit | 29244f3328cdf878ac557acbbabb19a5b7190b2d (patch) | |
| tree | cb9ad7bdf07f258fe47cee33ef31a49f989f5078 /src/envfs.h | |
| parent | d082a91ad617808a6dd89ad9fdb9479524795520 (diff) | |
thread-safe directory entry
Diffstat (limited to 'src/envfs.h')
| -rw-r--r-- | src/envfs.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/envfs.h b/src/envfs.h index 6e0da6d0..001f2d09 100644 --- a/src/envfs.h +++ b/src/envfs.h @@ -11,6 +11,8 @@ struct File std::wstring name; std::wstring lcname; FILETIME lastModified; + + File(std::wstring_view name, FILETIME ft); }; struct Directory @@ -18,8 +20,11 @@ struct Directory std::wstring name; std::wstring lcname; - std::list<Directory> dirs; - std::list<File> files; + std::vector<Directory> dirs; + std::vector<File> files; + + Directory(); + Directory(std::wstring_view name); }; @@ -111,6 +116,7 @@ void forEachEntry( DirStartF* dirStartF, DirEndF* dirEndF, FileF* fileF); Directory getFilesAndDirs(const std::wstring& path); +Directory getFilesAndDirsWithFind(const std::wstring& path); } // namespace |
