summaryrefslogtreecommitdiff
path: root/src/utils/virtfstools.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-14 22:41:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-14 22:41:07 +0300
commit56d6454ba617d1dcddbbaa21e2066a7db0caee75 (patch)
tree5012e55f393db2d62b40eb64142fa4317b16c571 /src/utils/virtfstools.h
parentbdec92381ef60cd027292ed63e254e8de70028d9 (diff)
downloadmv-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.h15
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