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

fuse: tests: create the directory before starting tests

Nick Craig-Wood7cfb1bdc70bc
diff --git a/cmd/mount/fs_test.go b/cmd/mount/fs_test.go
index c1f1fae5a..7d202fa0c 100644
--- a/cmd/mount/fs_test.go
+++ b/cmd/mount/fs_test.go
@@ -82,6 +82,11 @@ func newRun() *Run {
log.Fatalf("Failed to open remote %q: %v", *RemoteName, err)
}
+ err = r.fremote.Mkdir()
+ if err != nil {
+ log.Fatalf("Failed to open mkdir %q: %v", *RemoteName, err)
+ }
+
r.mountPath, err = ioutil.TempDir("", "rclonefs-mount")
if err != nil {
log.Fatalf("Failed to create mount dir: %v", err)