pub fn validate_local_path_length(path: &Path) -> SshCliResult<()>Expand description
Validates a local filesystem path against Windows legacy length limits.
On all platforms this checks component length (≤255) so config written
on Linux remains openable if copied to Windows. On Windows (or when
force_windows_rules is true in tests), rejects total path length ≥
WINDOWS_MAX_PATH unless the path already uses the \\?\ long-path
prefix.
Remote SCP paths are not validated here (remote FS is Unix-like).
§Errors
Returns SshCliError::InvalidArgument when a component or the full path
exceeds platform limits.