public abstract class QuickIOFileSystemEntryBase
Provides properties and instance method for files and directories
private DateTime _creationTimeUtc
private DateTime _lastAccessTimeUtc
private DateTime _lastWriteTimeUtc
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
QuickIOPathInfoQuickIOPathInfo
findData
Win32FindDataWin32FindData
CheckExistance()
Returns true if path exists. Checks QuickIOFileSystemEntryType against the file system
public Boolean CheckExistance()
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
SafeExists(Boolean throwExceptionIfFileSystemEntryTypeDiffers, Boolean exceptionValue)
Returns true if exists and attends the FileSystemType
public Boolean SafeExists(Boolean throwExceptionIfFileSystemEntryTypeDiffers, Boolean exceptionValue)
Parameters
throwExceptionIfFileSystemEntryTypeDiffers
BooleanSuppress error message if the path exists but the QuickIOFileSystemEntryType differs
exceptionValue
BooleanDefault return value if is true
Returns
True or exceptionValue if UnmatchedFileSystemEntryTypeException thrown and throwExceptionIfFileSystemEntryTypeDiffers is true
SetOwner(IdentityReference newOwersIdentityReference)
Sets the owner
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
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; }
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; }
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; }