rclone/vfs
Nick Craig-Wood 9a9ef040e3 vfs: fix reload: failed to add virtual dir entry: file does not exist
This error happened on a restart of the VFS with files to upload into
a new directory on a bucket based backend. Rclone was assuming that
directories created before the restart would still exist, but this is
a bad assumption for bucket based backends which don't really have
directories.

This change creates the pretend directory and thus the directory cache
if the parent directory does not exist when adding a virtual on a
backend which can't have empty directories.

See: https://forum.rclone.org/t/that-pesky-failed-to-reload-error-message/34527
2023-04-13 18:00:26 +01:00
..
test_vfs Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
vfscache vfscache: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
vfscommon vfs: fix typos found by codespell 2023-03-25 09:33:34 +01:00
vfsflags docs: add section about --vfs-cache-max-age 2023-03-24 11:28:34 +00:00
vfstest Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
dir_handle_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
dir_handle.go Spelling fixes 2020-10-14 15:21:31 +01:00
dir_test.go vfs: log size of File and Dir in tests for optimization 2023-03-07 11:40:50 +00:00
dir.go vfs: ignore false positive from the unused linter 2023-03-26 14:28:15 +02:00
errors_test.go
errors.go
file_test.go vfs: log size of File and Dir in tests for optimization 2023-03-07 11:40:50 +00:00
file.go vfs: make uploaded files retain modtime with non-modtime backends 2023-03-10 15:00:01 +00:00
help.go docs: add section about --vfs-cache-max-age 2023-03-24 11:28:34 +00:00
make_open_tests.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
open_test.go
rc_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
rc.go vfs: add vfs/stats remote control to show statistics - fixes #5816 2021-11-23 18:00:21 +00:00
read_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
read_write_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
read_write.go build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
read.go build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
vfs_case_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
vfs_test.go vfs: add MkdirAll function to make a directory and all beneath 2023-04-13 18:00:22 +01:00
vfs.go vfs: fix reload: failed to add virtual dir entry: file does not exist 2023-04-13 18:00:26 +01:00
vfstest_test.go
vstate_string.go vfs: fix virtual entries causing deleted files to still appear 2020-11-10 16:47:25 +00:00
write_test.go test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
write.go rcat: preserve metadata when Copy falls back to Rcat 2022-11-10 12:04:35 +00:00