File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1310,6 +1310,14 @@ bool Utility::PathExists(const String& path)
1310
1310
return fs::exists (fs::path (path.Begin (), path.End ()), ec) && !ec;
1311
1311
}
1312
1312
1313
+ time_t Utility::GetFileCreationTime (const String& path)
1314
+ {
1315
+ namespace fs = boost::filesystem;
1316
+ fs::path filePath (path);
1317
+
1318
+ return fs::last_write_time (filePath);
1319
+ }
1320
+
1313
1321
Value Utility::LoadJsonFile (const String& path)
1314
1322
{
1315
1323
std::ifstream fp;
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ class Utility
109
109
static tm LocalTime (time_t ts);
110
110
111
111
static bool PathExists (const String& path);
112
+ static time_t GetFileCreationTime (const String& path);
112
113
113
114
static void Remove (const String& path);
114
115
static void RemoveDirRecursive (const String& path);
You can’t perform that action at this time.
0 commit comments