From 56d6454ba617d1dcddbbaa21e2066a7db0caee75 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Feb 2017 22:41:07 +0300 Subject: Move some virtfs replated functions from files.cpp into virtfstools.cpp --- src/utils/virtfstools.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/utils/virtfstools.h') 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 @@ -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 -- cgit v1.2.3-60-g2f50