<PackageReference Include="SSH.NET" Version="2024.2.0" />

PosixPath

sealed class PosixPath
Represents a POSIX path.
public string Directory { get; }

Gets the directory of the path.

public string File { get; }

Gets the file part of the path.

public static PosixPath CreateAbsoluteOrRelativeFilePath(string path)

Create a PosixPath from the specified path.

public static string GetDirectoryName(string path)

Gets the directory name part of a given POSIX path.

public static string GetFileName(string path)

Gets the file name part of a given POSIX path.