Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

fspath: add unit tests for remote names with leading dash

albertonyf73be767a412
diff --git a/fs/fspath/path_test.go b/fs/fspath/path_test.go
index 402692136..c72423c0c 100644
--- a/fs/fspath/path_test.go
+++ b/fs/fspath/path_test.go
@@ -58,6 +58,7 @@ func TestCheckRemoteName(t *testing.T) {
{".:", nil},
{"..:", nil},
{".r.e.m.o.t.e.:", nil},
+ {"-r-emote-:", nil},
{"rem ote:", nil},
{"remote :", nil},
{" remote:", nil},