2013-05-08 15:42:44 +03:00
|
|
|
#ifndef _library__directory__hpp__included__
|
|
|
|
#define _library__directory__hpp__included__
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
#include <string>
|
2013-12-30 22:57:22 +02:00
|
|
|
#include <cstdlib>
|
2013-05-08 15:42:44 +03:00
|
|
|
|
|
|
|
std::set<std::string> enumerate_directory(const std::string& dir, const std::string& match);
|
2013-12-18 00:30:36 +02:00
|
|
|
std::string get_absolute_path(const std::string& relative);
|
|
|
|
uintmax_t file_get_size(const std::string& path);
|
|
|
|
time_t file_get_mtime(const std::string& path);
|
2013-12-29 00:03:57 +02:00
|
|
|
bool file_exists(const std::string& filename);
|
2013-12-18 00:30:36 +02:00
|
|
|
bool file_is_regular(const std::string& filename);
|
|
|
|
bool file_is_directory(const std::string& filename);
|
|
|
|
bool ensure_directory_exists(const std::string& path);
|
2013-05-08 15:42:44 +03:00
|
|
|
|
|
|
|
#endif
|