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

Search Results for

    Interface IRelativeFilePath

    Represents a relative path to a file.

    Inherited Members
    IRelativePath.IPath.ParentDirectory
    IFilePath.NameWithoutExtension
    IFilePath.Extension
    IFilePath.HasExtension(string)
    IFilePath.HasMultiExtension(string)
    IFilePath.GetMultiExtension(params ReadOnlySpan<string>)
    IPath.op_Equality(IPath, IPath)
    IPath.op_Inequality(IPath, IPath)
    IPath.Name
    IPath.PathDisplay
    IPath.PathFormat
    IPath.HasParentDirectory
    IPath.IsRooted
    IPath.IsValidFor(PathOptions)
    IPath.IsValidFor(PathOptions, out string)
    IPath.Equals(IPath)
    IPath.ToString()
    Namespace: Singulink.IO
    Assembly: Singulink.IO.FileSystem.dll
    Syntax
    [TypeConverter(typeof(RelativeFilePathConverter))]
    [JsonConverter(typeof(RelativeFilePathJsonConverter))]
    public interface IRelativeFilePath : IRelativePath, IFilePath, IPath, IEquatable<IPath?>

    Properties

    Name Description
    ParentDirectory

    Gets the file's parent directory.

    Methods

    Name Description
    AddExtension(string?, PathOptions)

    Adds a single extension to the file name, preserving any existing extensions before it.

    AddMultiExtension(string?, PathOptions)

    Adds a multi-extension, which has one or more parts (e.g. ".gz" or ".tar.gz"), to the file name, preserving any existing extensions before it.

    RemoveExtension(string, PathOptions)

    Removes the specified single extension, which is the last extension of the file name. Case is ignored on every platform.

    RemoveMultiExtension(string, PathOptions)

    Removes the specified multi-extension, which has one or more parts (e.g. ".gz" or ".tar.gz"), from the end of the file name. Case is ignored on every platform.

    ToPathFormat(PathFormat, PathOptions)

    Converts the path to use a different format.

    WithExtension(string?, PathOptions)

    Changes the last extension of the file name to a new single extension.

    Explicit Interface Implementations

    Name Description
    IFilePath.AddExtension(string?, PathOptions)

    Adds a single extension to the file name, preserving any existing extensions before it.

    IFilePath.AddMultiExtension(string?, PathOptions)

    Adds a multi-extension, which has one or more parts (e.g. ".gz" or ".tar.gz"), to the file name, preserving any existing extensions before it.

    IFilePath.RemoveExtension(string, PathOptions)

    Removes the specified single extension, which is the last extension of the file name. Case is ignored on every platform.

    IFilePath.RemoveMultiExtension(string, PathOptions)

    Removes the specified multi-extension, which has one or more parts (e.g. ".gz" or ".tar.gz"), from the end of the file name. Case is ignored on every platform.

    IFilePath.WithExtension(string?, PathOptions)

    Changes the last extension of the file name to a new single extension.

    IRelativePath.ParentDirectory

    Gets the parent directory of this file/directory.

    IRelativePath.ToPathFormat(PathFormat, PathOptions)

    Converts the path to use a different format.

    © Singulink. All rights reserved.