1
mirror of https://github.com/rclone/rclone synced 2024-12-24 15:43:45 +01:00
rclone/fs/fspath
Nick Craig-Wood eb6e9b194a fspath: Stop empty strings being a valid path - fixes #4239
Before this change you could use "" as a valid remote, so `rclone lsf
""` would work. This was treated as the current directory.

This is unexpected and creates a footgun for scripting when an empty
variable is passed to rclone by accident.

This fix returns the error "can't use empty string as a path" instead
of allowing it.
2020-05-19 12:34:23 +01:00
..
path_test.go fspath: Stop empty strings being a valid path - fixes #4239 2020-05-19 12:34:23 +01:00
path.go fspath: Stop empty strings being a valid path - fixes #4239 2020-05-19 12:34:23 +01:00