File System File System
File System File System
DocFX + Singulink = ♥

Search Results for

    Class CachedEntryInfo

    Represents cached information about a file or directory.

    Inheritance
    object
    CachedEntryInfo
    CachedDirectoryInfo
    CachedFileInfo
    Namespace: Singulink.IO
    Assembly: Singulink.IO.FileSystem.dll
    Syntax
    public abstract class CachedEntryInfo
    Remarks

    The values exposed by this type are a snapshot of the file/directory's state at the time the instance was created or last refreshed. Call Refresh() to update the snapshot from the underlying file system.

    Properties

    Name Description
    Attributes

    Gets the file/directory attributes captured in the snapshot.

    CreationTime

    Gets the file/directory's creation time as a local time.

    CreationTimeUtc

    Gets the file/directory's creation time in Coordinated Universal Time (UTC).

    LastAccessTime

    Gets the file/directory's last access time as a local time.

    LastAccessTimeUtc

    Gets the file/directory's last access time in Coordinated Universal Time (UTC).

    LastWriteTime

    Gets the file/directory's last write time as a local time.

    LastWriteTimeUtc

    Gets the file/directory's last write time in Coordinated Universal Time (UTC).

    Path

    Gets the path to the file/directory.

    Methods

    Name Description
    Create(ReadOnlySpan<char>, PathOptions)

    Creates a cached info snapshot for an existing file or directory at the specified absolute path. The returned instance is either a CachedFileInfo or CachedDirectoryInfo depending on the entry's type.

    Refresh()

    Refreshes the cached information about the file/directory. If the refresh fails for any reason, the existing snapshot is left unchanged.

    ToString()

    Returns a string containing the path format, entry type and the path. Not usable for file system operations.

    © Singulink. All rights reserved.