AuroraRuntime/Include/Aurora/IO/FS/Stat.hpp

39 lines
946 B
C++
Raw Normal View History

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
{
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>(...)
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
*/
AUKN_SYM bool StatFile(const AuROString &path, Stat &stat);
2021-06-27 21:25:29 +00:00
}