|
@@ -13,6 +13,7 @@
|
|
#include "../base/Class.hpp"
|
|
#include "../base/Class.hpp"
|
|
#include <string>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <vector>
|
|
|
|
+#include <ctime>
|
|
|
|
|
|
namespace ls_std {
|
|
namespace ls_std {
|
|
class File : public Class {
|
|
class File : public Class {
|
|
@@ -37,6 +38,7 @@ namespace ls_std {
|
|
long getSize();
|
|
long getSize();
|
|
bool isDirectory();
|
|
bool isDirectory();
|
|
bool isFile();
|
|
bool isFile();
|
|
|
|
+ time_t lastModified();
|
|
void makeDirectory();
|
|
void makeDirectory();
|
|
void makeDirectories();
|
|
void makeDirectories();
|
|
void remove();
|
|
void remove();
|
|
@@ -48,6 +50,7 @@ namespace ls_std {
|
|
bool _exists(const std::string& _path);
|
|
bool _exists(const std::string& _path);
|
|
bool _isDirectory(const std::string& _path);
|
|
bool _isDirectory(const std::string& _path);
|
|
bool _isFile(const std::string& _path);
|
|
bool _isFile(const std::string& _path);
|
|
|
|
+ static time_t _lastModified(const std::string& _path);
|
|
static int _mkdir(const std::string& _path);
|
|
static int _mkdir(const std::string& _path);
|
|
static std::string _normalizePath(std::string _path);
|
|
static std::string _normalizePath(std::string _path);
|
|
static std::vector<std::string> _splitIntoSubDirectoryNames(const std::string& _path);
|
|
static std::vector<std::string> _splitIntoSubDirectoryNames(const std::string& _path);
|