diff --git a/fs/fs.go b/fs/fs.go index 19a9b8e51..dc6d74861 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -50,6 +50,7 @@ var ( ErrorNotImplemented = errors.New("optional feature not implemented") ErrorCommandNotFound = errors.New("command not found") ErrorFileNameTooLong = errors.New("file name too long") + ErrorCantListRoot = errors.New("can't list root") ) // CheckClose is a utility function used to check the return from diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go index 418745f4f..4db6f2907 100644 --- a/fstest/fstests/fstests.go +++ b/fstest/fstests/fstests.go @@ -1915,6 +1915,9 @@ func Run(t *testing.T, opt *Opt) { } t.Logf("Opening root remote %q path %q from %q", configName, configLeaf, subRemoteName) rootRemote, err := fs.NewFs(context.Background(), configName) + if errors.Is(err, fs.ErrorCantListRoot) { + t.Skip("Can't list from root on this remote") + } require.NoError(t, err) file1Root := file1