Class FileInfoLite
- Namespace
- SunamoData.Data
- Assembly
- SunamoData.dll
Lightweight file information class containing basic file metadata.
public class FileInfoLite
- Inheritance
-
FileInfoLite
- Derived
- Inherited Members
- Extension Methods
Constructors
FileInfoLite()
Initializes a new instance of the FileInfoLite class.
public FileInfoLite()
FileInfoLite(string, string, long)
Initializes a new instance of the FileInfoLite class with specified values.
public FileInfoLite(string directory, string fileName, long length)
Parameters
directorystringThe directory path.
fileNamestringThe file name.
lengthlongThe file size in bytes.
Properties
Directory
Gets or sets the directory path.
public string Directory { get; set; }
Property Value
FileName
Gets the file name (alias for Name property).
public string FileName { get; }
Property Value
Length
Gets the file length in bytes (alias for Size property).
public long Length { get; }
Property Value
Name
Gets or sets the file name without path, with extension and series.
public string Name { get; set; }
Property Value
Path
Gets or sets the full path to the file.
public string Path { get; set; }
Property Value
Size
Gets or sets the file size in bytes.
public long Size { get; set; }
Property Value
Methods
GetFIL(FileInfo)
Creates a FileInfoLite instance from a FileInfo object.
public static FileInfoLite GetFIL(FileInfo fileInfo)
Parameters
fileInfoFileInfoThe FileInfo object to convert.
Returns
- FileInfoLite
A new FileInfoLite instance.
GetFIL(string)
Creates a FileInfoLite instance from a file path.
public static FileInfoLite GetFIL(string file)
Parameters
filestringThe file path.
Returns
- FileInfoLite
A new FileInfoLite instance.