Go path semantics used by the pinned pkg/sftp client: join/1, split/1,
clean/1 and match/2. Paths are byte strings with / separators; nothing here
touches a filesystem.
Summary
Functions
Go path.Clean: the shortest equivalent path by purely lexical processing.
Go path.Join: joins non-empty elements with / and cleans the result.
Go path.Match: whether name matches the shell pattern. Returns
{:ok, boolean} or {:error, :bad_pattern} exactly where Go returns
path.ErrBadPattern.
Go path.Split: splits after the final / into {dir, file}.
Functions
Go path.Clean: the shortest equivalent path by purely lexical processing.
Go path.Join: joins non-empty elements with / and cleans the result.
Go path.Match: whether name matches the shell pattern. Returns
{:ok, boolean} or {:error, :bad_pattern} exactly where Go returns
path.ErrBadPattern.
Go path.Split: splits after the final / into {dir, file}.