Fields (3) Methods (9) Properties (22)
Namespace: SchwabenCode.QuickIO

Syntax

public abstract class QuickIOFileSystemEntryBase

Summary

Provides properties and instance method for files and directories

Uses

Fields

private  DateTime _creationTimeUtc
private  DateTime _lastAccessTimeUtc
private  DateTime _lastWriteTimeUtc

Methods

QuickIOFileSystemEntryBase(QuickIOPathInfo pathInfo, Win32FindData findData)

Initializes a new instance of the QuickIOAbstractBase class, which acts as a wrapper for a file path.

internal void QuickIOFileSystemEntryBase(QuickIOPathInfo pathInfo, Win32FindData findData)

Parameters

pathInfo

QuickIOPathInfo

QuickIOPathInfo

findData

Win32FindData

Win32FindData

GetFileSystemSecurity()

Returns current QuickIOFileSystemSecurity

public QuickIOFileSystemSecurity GetFileSystemSecurity()

Returns

QuickIOFileSystemSecurity

GetOwner()

Determines the owner

public NTAccount GetOwner()

Returns

NTAccount

GetOwnerIdentifier()

Determines the owner

public IdentityReference GetOwnerIdentifier()

Returns

IdentityReference

public Boolean SafeExists(Boolean throwExceptionIfFileSystemEntryTypeDiffers, Boolean exceptionValue)

Parameters

throwExceptionIfFileSystemEntryTypeDiffers

Boolean

Suppress error message if the path exists but the QuickIOFileSystemEntryType differs

exceptionValue

Boolean

Default return value if is true

Returns

True or exceptionValue if UnmatchedFileSystemEntryTypeException thrown and throwExceptionIfFileSystemEntryTypeDiffers is true

public Task<Boolean> SafeExistsAsync(Boolean throwExceptionIfFileSystemEntryTypeDiffers, Boolean exceptionValue)

Parameters

throwExceptionIfFileSystemEntryTypeDiffers

Boolean

Suppress error message if the path exists but the QuickIOFileSystemEntryType differs

exceptionValue

Boolean

Default return value if is true

Returns

True or exceptionValue if UnmatchedFileSystemEntryTypeException thrown and throwExceptionIfFileSystemEntryTypeDiffers is true

public void SetOwner(IdentityReference newOwersIdentityReference)

SetOwner(NTAccount newOwner)

Determines the owner

public void SetOwner(NTAccount newOwner)

Returns

IdentityReference

ToString()

Returns FullName

public String ToString()

Returns

FullName

Properties

Attributes

Attributes (Cached Value)

public FileAttributes Attributes { get; set; }

CreationTime

Gets the creation time

public DateTime CreationTime { get; }

CreationTimeUtc

Gets the creation time (UTC)

public DateTime CreationTimeUtc { get; set; }

Exists

Returns true if exists

public abstract Boolean Exists { get; }

ExistsAsync

Returns true if exists

public abstract Task<Boolean> ExistsAsync { get; }

FindData

Win32ApiFindData bag

internal Win32FindData FindData { get; set; }

FullName

Full path of the directory or file.

public String FullName { get; }

FullNameUnc

Full path of the directory or file (unc format)

public String FullNameUnc { get; }

IsReadOnly

True if file is readonly. Cached.

public Boolean IsReadOnly { get; set; }

IsReadOnlyAsync

True if file is readonly. Cached.

public Task<Boolean> IsReadOnlyAsync { get; set; }

LastAccessTime

Gets the time that the file was last accessed

public DateTime LastAccessTime { get; }

LastAccessTimeUtc

Gets the time (UTC) of last access.

public DateTime LastAccessTimeUtc { get; set; }

LastWriteTime

Gets the time the file was last written to.

public DateTime LastWriteTime { get; }

LastWriteTimeUtc

Gets the time (UTC) was last written to

public DateTime LastWriteTimeUtc { get; set; }

Name

Name of file or directory

public String Name { get; }

Parent

Parent.

public QuickIOPathInfo Parent { get; }

ParentFullName

Fullname of Parent.

public String ParentFullName { get; }

PathInfo

QuickIOPathInfo Container

public QuickIOPathInfo PathInfo { get; set; }

PathLocation

QuickIOPathLocation of current path

public QuickIOPathLocation PathLocation { get; }

PathType

PathType

public QuickIOPathType PathType { get; }

Root

Returns Root or null if current path is root

public QuickIOPathInfo Root { get; }

RootFullName

Fullname of Root. null if current path is root.

public String RootFullName { get; }