Files
WPinternals/WPinternalsSDK/File.cs
T
2024-10-12 13:46:34 +02:00

36 lines
742 B
C#

namespace WPinternalsSDK
{
public class File : FileSystemEntry
{
public File(string Path, FileAttributes Attributes) : base(Path, Attributes)
{
}
public ulong Size
{
get
{
if (!this.sizeQueried)
{
this.size = FileSystem.GetFileSize(base.Path);
}
return this.size;
}
internal set
{
this.size = value;
this.sizeQueried = true;
}
}
public override string ToString()
{
return base.Path;
}
private bool sizeQueried;
private ulong size;
}
}