Table of Contents

Class FileInfoSerie

Namespace
SunamoData.Data
Assembly
SunamoData.dll

Represents file information with serie information (file name patterns like "file (1).txt", "file (2).txt").

public class FileInfoSerie : FileInfoLite
Inheritance
FileInfoSerie
Inherited Members
Extension Methods

Properties

FileNameComplet

Gets or sets the complete file name with extension but without path, possibly modified.

public string FileNameComplet { get; set; }

Property Value

string

HasSerie

Gets or sets whether this file has a serie number in its name.

public bool HasSerie { get; set; }

Property Value

bool

IsDeleted

Gets or sets whether this file has been deleted.

public bool IsDeleted { get; set; }

Property Value

bool

NameWithoutSeries

Gets or sets the file name without the serie number.

public string NameWithoutSeries { get; set; }

Property Value

string

NeverRemove

Gets or sets whether this file should never be removed.

public bool NeverRemove { get; set; }

Property Value

bool

PathWithoutSerie

Gets or sets the file path without the serie number.

public string PathWithoutSerie { get; set; }

Property Value

string

Methods

GetFIS(FileInfo, Func<string, bool, SerieStyleData, (string, bool)>)

Creates a FileInfoSerie instance from a FileInfo object.

public static FileInfoSerie GetFIS(FileInfo fileInfo, Func<string, bool, SerieStyleData, (string, bool)> GetNameWithoutSeriesNoOut)

Parameters

fileInfo FileInfo

The FileInfo object.

GetNameWithoutSeriesNoOut Func<string, bool, SerieStyleData, (string, bool)>

Function to extract name without serie number.

Returns

FileInfoSerie

A new FileInfoSerie instance.

GetFIS(string, Func<string, bool, SerieStyleData, (string, bool)>)

Creates a FileInfoSerie instance from a file path.

public static FileInfoSerie GetFIS(string file, Func<string, bool, SerieStyleData, (string, bool)> GetNameWithoutSeriesNoOut)

Parameters

file string

The file path.

GetNameWithoutSeriesNoOut Func<string, bool, SerieStyleData, (string, bool)>

Function to extract name without serie number.

Returns

FileInfoSerie

A new FileInfoSerie instance.