tsMuxer/libmediation/fs/directory.h
Daniel Kamil Kozar 451ec61a50
Introduce a uniform formatting style (#131)
The repository now contains a clang-format file which should be used when committing new code. Additionally, a new workflow job is added which checks the conformance of source files to the specified formatting rules.

Fixes #47.
2020-01-14 21:56:44 +01:00

24 lines
577 B
C++

#ifndef directory_h
#define directory_h
#include <string>
#include "types/types.h"
bool createDir(const std::string& dirName, bool createParentDirs = false);
std::string extractFileDir(const std::string& fileName);
char getDirSeparator();
bool fileExists(const std::string& fileName);
uint64_t getFileSize(const std::string& fileName);
/** remove file. cerr contains error code */
bool deleteFile(const std::string& fileName);
bool findFilesRecursive(const std::string& path, const std::string& mask, std::vector<std::string>* const fileList);
#endif // directory_h