Files
WPinternals/WPinternalsSDK/File.cs
T
2021-08-14 11:24:02 +02:00

38 lines
757 B
C#

using System;
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;
}
}