clang-format
This commit is contained in:
@@ -383,12 +383,13 @@ FileTimeStampRaw GetTimeStamp(const std::string& filename) {
|
||||
if (stat(filename.c_str(), &buf) == 0)
|
||||
#endif
|
||||
{
|
||||
LOG_TRACE(Common_Filesystem, "{}: Created={}, Accessed={}, Modified={}", filename, buf.st_ctime, buf.st_atime, buf.st_mtime);
|
||||
LOG_TRACE(Common_Filesystem, "{}: Created={}, Accessed={}, Modified={}", filename,
|
||||
buf.st_ctime, buf.st_atime, buf.st_mtime);
|
||||
|
||||
timestamp.Created = buf.st_ctime;
|
||||
timestamp.Accessed = buf.st_atime;
|
||||
timestamp.Modified = buf.st_mtime;
|
||||
|
||||
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
|
||||
@@ -241,7 +241,8 @@ ResultVal<FileSys::EntryType> VfsDirectoryServiceWrapper::GetEntryType(
|
||||
return FileSys::ERROR_PATH_NOT_FOUND;
|
||||
}
|
||||
|
||||
ResultVal<FileUtil::FileTimeStampRaw> VfsDirectoryServiceWrapper::GetFileTimeStampRaw(const std::string& path_) const {
|
||||
ResultVal<FileUtil::FileTimeStampRaw> VfsDirectoryServiceWrapper::GetFileTimeStampRaw(
|
||||
const std::string& path_) const {
|
||||
std::string path(FileUtil::SanitizePath(path_));
|
||||
auto file = backing->GetFileRelative(path);
|
||||
if (file == nullptr)
|
||||
|
||||
@@ -227,7 +227,8 @@ public:
|
||||
ResultVal<FileSys::EntryType> GetEntryType(const std::string& path) const;
|
||||
|
||||
/**
|
||||
* Gets the creation, last accessed, and last modified timestamps of a File specified by its path
|
||||
* Gets the creation, last accessed, and last modified timestamps of a File
|
||||
* specified by its path
|
||||
* @param path Path relative to the archive
|
||||
* @return The timestamps of the File. They are expressed as a Unix timestamp
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user