29 #ifndef CDPL_UTIL_FILEFUNCTIONS_HPP
30 #define CDPL_UTIL_FILEFUNCTIONS_HPP
51 const std::string& ptn =
"%%%%-%%%%-%%%%-%%%%");
Definition of the preprocessor macro CDPL_UTIL_API.
#define CDPL_UTIL_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
CDPL_UTIL_API std::string genCheckedTempFilePath(const std::string &dir="", const std::string &ptn="%%%%-%%%%-%%%%-%%%%")
Generates a temporary file path inside dir whose basename matches the supplied randomization ptn and ...
CDPL_UTIL_API bool checkIfSameFile(const std::string &path1, const std::string &path2)
Tells whether path1 and path2 refer to the same file (after resolving symlinks and case-insensitivity...
CDPL_UTIL_API bool fileExists(const std::string &path)
Tells whether the file at path exists.
The namespace of the Chemical Data Processing Library.