file_manip.h
Go to the documentation of this file.00001
00012 #ifndef FILE_MANIP_H
00013 #define FILE_MANIP_H
00014
00015 #include <string>
00016 #include <list>
00017
00018
00027 bool copy_file(std::string const & source, std::string const & destination);
00028
00030 bool is_directory(std::string const & dirname);
00031
00039 bool is_files_identical(std::string const & file1, std::string const & file2);
00040
00050 std::string const op_realpath(std::string const & name);
00051
00053 bool op_file_readable(std::string const & file);
00054
00065 bool create_file_list(std::list<std::string> & file_list,
00066 std::string const & base_dir,
00067 std::string const & filter = "*",
00068 bool recursive = false);
00069
00076 std::string op_dirname(std::string const & file_name);
00077
00087 std::string op_basename(std::string const & path_name);
00088
00089 #endif