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

Search Results for

    Method GetInfo

    GetInfo(ReadOnlySpan<char>, PathOptions)

    Gets cached info for an existing file or directory located by combining this directory with the specified relative path parsed using the specified options and this directory's path format. The returned instance is either a CachedFileInfo or CachedDirectoryInfo depending on the entry's type.

    Declaration
    CachedEntryInfo GetInfo(ReadOnlySpan<char> path, PathOptions options = PathOptions.NoUnfriendlyNames)
    Parameters
    Type Name Description
    ReadOnlySpan<char> path

    A relative path to an existing file or directory under (or navigated from) this directory.

    PathOptions options

    The options to use for parsing the appended relative path.

    Returns
    Type Description
    CachedEntryInfo
    Exceptions
    Type Condition
    FileNotFoundException

    No file or directory exists at the combined path.

    DirectoryNotFoundException

    A parent directory in the combined path does not exist.

    GetInfo(ReadOnlySpan<char>, PathFormat, PathOptions)

    Gets cached info for an existing file or directory located by combining this directory with the specified relative path parsed using the specified format and options. The returned instance is either a CachedFileInfo or CachedDirectoryInfo depending on the entry's type.

    Declaration
    CachedEntryInfo GetInfo(ReadOnlySpan<char> path, PathFormat format, PathOptions options = PathOptions.NoUnfriendlyNames)
    Parameters
    Type Name Description
    ReadOnlySpan<char> path

    A relative path to an existing file or directory under (or navigated from) this directory.

    PathFormat format

    The path format to use for parsing the appended relative path. Must be either this directory's path format or the universal format.

    PathOptions options

    The options to use for parsing the appended relative path.

    Returns
    Type Description
    CachedEntryInfo
    Exceptions
    Type Condition
    FileNotFoundException

    No file or directory exists at the combined path.

    DirectoryNotFoundException

    A parent directory in the combined path does not exist.

    GetInfo()

    Gets information about this directory.

    Declaration
    CachedDirectoryInfo GetInfo()
    Returns
    Type Description
    CachedDirectoryInfo
    © Singulink. All rights reserved.