Show / Hide Table of Contents

    Class PathNormalizer

    Path normalization by removing its . and .. segments and replacing \ with /.

    Inheritance
    Object
    PathNormalizer
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer.FileSystem
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public static class PathNormalizer

    Methods

    | Improve this Doc View Source

    NormalizePath(IEnumerable<String>, Nullable<IEnumerable<String>>)

    Normalize a path by removing its . and .. segments.

    Declaration
    public static IEnumerable<string> NormalizePath(this IEnumerable<string> pathSegments, IEnumerable<string>? previousPathSegments = default(IEnumerable<string>? ))
    Parameters
    Type Name Description
    IEnumerable<String> pathSegments

    The segments of the path to normalize.

    Nullable<IEnumerable<String>> previousPathSegments

    Initial path segments to be used as reference.

    Returns
    Type Description
    IEnumerable<String>

    The normalized path segments.

    | Improve this Doc View Source

    NormalizePath(String)

    Normalize a path by removing its . and .. segments.

    Declaration
    public static string NormalizePath(this string path)
    Parameters
    Type Name Description
    String path

    The path to normalize.

    Returns
    Type Description
    String

    The normalized path.

    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.