Table of Contents

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

directory string

The directory path.

fileName string

The file name.

length long

The file size in bytes.

Properties

Directory

Gets or sets the directory path.

public string Directory { get; set; }

Property Value

string

FileName

Gets the file name (alias for Name property).

public string FileName { get; }

Property Value

string

Length

Gets the file length in bytes (alias for Size property).

public long Length { get; }

Property Value

long

Name

Gets or sets the file name without path, with extension and series.

public string Name { get; set; }

Property Value

string

Path

Gets or sets the full path to the file.

public string Path { get; set; }

Property Value

string

Size

Gets or sets the file size in bytes.

public long Size { get; set; }

Property Value

long

Methods

GetFIL(FileInfo)

Creates a FileInfoLite instance from a FileInfo object.

public static FileInfoLite GetFIL(FileInfo fileInfo)

Parameters

fileInfo FileInfo

The 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

file string

The file path.

Returns

FileInfoLite

A new FileInfoLite instance.