Class FileRecord
Managed counterpart of FexViewer.FileRecordNative. Created by FexViewer.FileRecord.FromNative(FexViewer.FileRecordNative) after the DLL buffer has been read; safe to keep alive after the native allocation is freed.
Inherited Members
Namespace: FexViewer
Assembly: FexViewer.dll
Syntax
public class FileRecord
Properties
AccessedDate
Last-accessed time in UTC, or null if not recorded.
Declaration
public DateTime? AccessedDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
CreatedDate
File-creation time in UTC, or null if not recorded.
Declaration
public DateTime? CreatedDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
FileBatesId
Unique-per-image file ID.
Declaration
public int FileBatesId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
FileName
Filename (without parent path) as UTF-8 string.
Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsDeleted
True when Status has the FILESTATUS_DELETED bit set.
Declaration
public bool IsDeleted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsFolder
True when Status has the FILESTATUS_FOLDER bit set.
Declaration
public bool IsFolder { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LogicalSize
User-visible (logical) size of the file in bytes.
Declaration
public long LogicalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
ModifiedDate
Last-modified time in UTC, or null if not recorded.
Declaration
public DateTime? ModifiedDate { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
ParentBatesId
Bates ID of the parent record, or 0 for root entries.
Declaration
public int ParentBatesId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ParentIndex
Index of the parent record in the same record array, or -1 for roots.
Declaration
public int ParentIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PhysicalSize
Allocated / cluster-rounded size of the file in bytes.
Declaration
public long PhysicalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Status
Bit-field of FILESTATUS_* flags. Use StatusFlags helpers to decode.
Declaration
public ulong Status { get; set; }
Property Value
| Type | Description |
|---|---|
| ulong |
Methods
FormatSize()
Returns LogicalSize formatted as a human-readable string
(e.g. "15.36 KB").
Declaration
public string FormatSize()
Returns
| Type | Description |
|---|---|
| string |