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

Search Results for

    Method Create

    Create(ReadOnlySpan<char>, PathOptions)

    Creates a cached info snapshot for an existing file at the specified absolute path.

    Declaration
    public static CachedFileInfo Create(ReadOnlySpan<char> path, PathOptions options = PathOptions.NoUnfriendlyNames)
    Parameters
    Type Name Description
    ReadOnlySpan<char> path

    An absolute path to an existing file, using the current platform's format.

    PathOptions options

    Specifies the path parsing options for path.

    Returns
    Type Description
    CachedFileInfo
    Exceptions
    Type Condition
    FileNotFoundException

    No file exists at the specified path.

    DirectoryNotFoundException

    A parent directory in the specified path does not exist.

    IOException

    The path resolves to a directory instead of a file.

    © Singulink. All rights reserved.