Show / Hide Table of Contents

Class FLFile

Contains file or directory properties retrieved by a file system enumeration function.

public class FLFile
Remarks

Has implicit conversion to string (full path).

Can be used like foreach (var v in filesystem.list(directory).All) print.it(v, v.Name, v.IsDirectory);.


Namespace: Au.Types
Assembly: Au.dll
Inheritance
object
FLFile

Constructors

Name Description
FLFile(in FLEntry)

Properties

Name Description
Attributes

Attributes.

CreationTimeUtc

Time when the file was created.

Depth

Recursion depth, starting from 0. In other words - the number of \ in the relative path.

Extension

File name extension, like ".txt". Returns "" if no extension.

IsDirectory

Returns true if it's a directory.

IsLink

Returns true if it's a NTFS link (symbolic link, mount point etc).

LastWriteTimeUtc

Last time data was written to the file.

Name

Filename.

NameSpan

Name as span. Use when you avoid creating a new string (Name creates once, when used the first time).

Path

Full path.

RelativePath

Relative path.

RelativePathSpan

Relative path as span. Use when you avoid creating a new string (RelativePath creates once, when used the first time).

Size

File size.

Methods

Name Description
ToString()

Returns full path.

Operators

Name Description
implicit operator string(FLFile)

Implicit conversion to string. Returns full path.