38 lines
842 B
C++
38 lines
842 B
C++
/***
|
|
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);
|
|
|
|
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[...]
|
|
AuInt64 created;
|
|
AuInt64 modified;
|
|
AuInt64 accessed;
|
|
|
|
AuUInt64 uSize;
|
|
};
|
|
|
|
/**
|
|
Classic file stat function
|
|
*/
|
|
AUKN_SYM bool StatFile(const AuString &path, Stat &stat);
|
|
} |