21 #ifndef INCLUDE_OLA_FILE_UTIL_H_
22 #define INCLUDE_OLA_FILE_UTIL_H_
30 extern const char PATH_SEPARATOR;
37 std::string ConvertPathSeparators(
const std::string &path);
47 bool FindMatchingFiles(
const std::string &directory,
48 const std::string &prefix,
49 std::vector<std::string> *files);
59 bool FindMatchingFiles(
const std::string &directory,
60 const std::vector<std::string> &prefixes,
61 std::vector<std::string> *files);
71 bool ListDirectory(
const std::string& directory,
72 std::vector<std::string> *files);
81 std::string FilenameFromPathOrDefault(
const std::string &path,
82 const std::string &default_value);
91 std::string FilenameFromPathOrPath(
const std::string &path);
98 std::string FilenameFromPath(
const std::string &path);
101 #endif // INCLUDE_OLA_FILE_UTIL_H_