validateScpRemotePathname

fnvoid validateScpRemotePathname(scope const(ubyte)[] path)

Validates a remote pathname for command construction.

Pathnames are protocol bytes passed through verbatim after quoting; this function rejects only what cannot be represented safely.

Parameters

pathRemote pathname bytes.

Throws

ScpException when the pathname is empty, contains a NUL

byte, or exceeds ScpLimits.pathMax.