2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: Stat.hpp
|
|
|
|
Date: 2021-6-10
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::IO::FS
|
|
|
|
{
|
|
|
|
struct Stat
|
|
|
|
{
|
2022-05-27 17:13:08 +00:00
|
|
|
AU_COPY_MOVE_DEF(Stat);
|
|
|
|
|
2022-08-20 06:53:48 +00:00
|
|
|
bool bExists;
|
|
|
|
bool bExistsFile,
|
|
|
|
bExistsDirectory,
|
|
|
|
bExistsSystemResource;
|
|
|
|
|
|
|
|
bool bSymLink;
|
|
|
|
|
|
|
|
// Convert file time in milliseconds:
|
|
|
|
// to UNIX using AuTime::ConvertAuroraToUnixMS
|
|
|
|
// to AuTime::tm (interchangeable) using AuTime::ToCivilTime
|
|
|
|
// to string using AuLocale::TimeDateTo[...]
|
2023-05-03 09:16:31 +00:00
|
|
|
// Updated May/2023: these are now in nanoseconds. Convert to MS using AuNSToMS<T>(...)
|
2023-05-03 07:57:21 +00:00
|
|
|
AuInt64 createdNs;
|
|
|
|
AuInt64 modifiedNs;
|
|
|
|
AuInt64 accessedNs;
|
2022-08-20 06:53:48 +00:00
|
|
|
|
|
|
|
AuUInt64 uSize;
|
2021-06-27 21:25:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
Classic file stat function
|
|
|
|
*/
|
2024-04-19 03:33:57 +00:00
|
|
|
AUKN_SYM bool StatFile(const AuROString &path, Stat &stat);
|
2021-06-27 21:25:29 +00:00
|
|
|
}
|