14 #ifndef __INCLUDED_SCOPIRA_TOOL_FILE_H__ 15 #define __INCLUDED_SCOPIRA_TOOL_FILE_H__ 21 #include <scopira/tool/export.h> 29 const char dir_seperator_c =
'/';
50 typedef ::off_t offset_t;
58 SCOPIRA_EXPORT
file(
void);
65 SCOPIRA_EXPORT
file(
const std::string &fname);
72 SCOPIRA_EXPORT
void set(
const std::string &fname);
79 SCOPIRA_EXPORT
bool exists(
void)
const;
86 SCOPIRA_EXPORT
bool is_file(
void)
const;
93 SCOPIRA_EXPORT
bool is_dir(
void)
const;
100 SCOPIRA_EXPORT offset_t
size(
void)
const;
107 SCOPIRA_EXPORT
static bool check_path(
const std::string& path);
117 SCOPIRA_EXPORT
static bool has_ext(
const std::string &fname,
const std::string &ext);
143 SCOPIRA_EXPORT
static void split_ext(
const std::string &fullname, std::string &sansext, std::string &ext);
152 SCOPIRA_EXPORT
static void split_path(
const std::string &fullname, std::string &path, std::string &name);
160 SCOPIRA_EXPORT
static std::string
realpath(
const std::string &name);
Definition: archiveflow.h:20