JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
DirectoryFileScanner.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 11/22/17.
3 //
4 
5 #ifndef JODA_DIRECTORYFILESCANNER_H
6 #define JODA_DIRECTORYFILESCANNER_H
7 #include <string>
8 #include <vector>
9 
10 namespace joda::filesystem {
16  public:
22  std::vector<std::string> getFilesInDir(const std::string &dir);
23 
31  std::vector<std::string> getFilesInDir(const std::string &dir,
32  const std::string &ending);
38  bool fileIsValid(const std::string &file);
39 
46  bool hasEnding(const std::string &file, const std::string &ending);
52  size_t getFileSize(const std::string &file) const;
53 
62  size_t getDirectorySize(const std::string &dir, bool recursive,
63  const std::string &extension) const;
64 };
65 } // namespace joda::filesystem
66 
67 #endif // JODA_DIRECTORYFILESCANNER_H
Definition: DirectoryFileScanner.h:15
size_t getFileSize(const std::string &file) const
Definition: DirectoryFileScanner.cpp:101
std::vector< std::string > getFilesInDir(const std::string &dir)
Definition: DirectoryFileScanner.cpp:143
bool fileIsValid(const std::string &file)
Definition: DirectoryFileScanner.cpp:12
size_t getDirectorySize(const std::string &dir, bool recursive, const std::string &extension) const
Definition: DirectoryFileScanner.cpp:111
bool hasEnding(const std::string &file, const std::string &ending)
Definition: DirectoryFileScanner.cpp:93
Definition: DirectoryFileScanner.h:10