24 #ifndef L_FILESYSTEM_H
25 #define L_FILESYSTEM_H
36 const std::string& name_format,
44 const std::string& name_format,
51 const std::string& str_format,
62 return fname.substr(fname.find_last_of(
".") + 1);
67 std::string
realpath(
const std::string& path);
std::vector< std::string > file_names_from_format(const std::string &name_format, size_t first, size_t num_files)
Expands the format into a set of (existing) file names.
Definition: l_filesystem.cpp:34
std::string realpath(const std::string &path)
return a canonicalized path, by wrapping kjb_c::kjb_realpath().
Definition: l_filesystem.cpp:115
Int_matrix::Value_type max(const Int_matrix &mat)
Return the maximum value in this matrix.
Definition: l_int_matrix.h:1397
std::string get_extension(const std::string &fname)
Definition: l_filesystem.h:60
std::vector< std::string > dir_names_from_format(const std::string &name_format, size_t first)
Expands the format into a set of (existing) file names.
Definition: l_filesystem.cpp:65
std::vector< std::string > strings_from_format(const std::string &str_format, size_t num_strings, size_t first)
Expands the format into a set strings.
Definition: l_filesystem.cpp:95