diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 22:41:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 22:41:07 +0300 |
commit | 56d6454ba617d1dcddbbaa21e2066a7db0caee75 (patch) | |
tree | 5012e55f393db2d62b40eb64142fa4317b16c571 /src/utils/virtfstools.h | |
parent | bdec92381ef60cd027292ed63e254e8de70028d9 (diff) | |
download | mv-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.gz mv-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.bz2 mv-56d6454ba617d1dcddbbaa21e2066a7db0caee75.tar.xz mv-56d6454ba617d1dcddbbaa21e2066a7db0caee75.zip |
Move some virtfs replated functions from files.cpp into virtfstools.cpp
Diffstat (limited to 'src/utils/virtfstools.h')
-rw-r--r-- | src/utils/virtfstools.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/utils/virtfstools.h b/src/utils/virtfstools.h index fccacbec1..14cf302fe 100644 --- a/src/utils/virtfstools.h +++ b/src/utils/virtfstools.h @@ -23,6 +23,8 @@ #include "enums/simpletypes/append.h" +#include "utils/stringvector.h" + #include "localconsts.h" #include <string> @@ -38,6 +40,19 @@ namespace VirtFs const Append append); void searchAndRemoveArchives(const std::string &restrict path, const std::string &restrict ext); + void getFilesInDir(const std::string &dir, + StringVect &list, + const std::string &ext); + void getFilesWithDir(const std::string &restrict path, + StringVect &restrict list); + void getFiles(const std::string &path, + StringVect &list); + void getDirs(const std::string &path, + StringVect &list); + std::string getPath(const std::string &file); + bool loadTextFile(const std::string &fileName, + StringVect &lines); + std::string loadTextFileString(const std::string &fileName); } // namespace VirtFs #endif // UTILS_VIRTFSTOOLS_H |