rclone/backend/local
Nick Craig-Wood 64cf9ac911 local: fix /path/to/file.rclonelink when -l/--links is in use
Before this change using /path/to/file.rclonelink would not find the
file when using -l/--links.

This fixes the problem by doing another stat call if the file wasn't
found without the suffix if -l/--links is in use.

It will also give an error if you refer to a symlink without its
suffix which will not work because the limit to a single file
filtering will be using the file name without the .rclonelink suffix.

    need ".rclonelink" suffix to refer to symlink when using -l/--links

Before this change it would use the symlink as a directory which then
would fail when listed.

See: #6855
2023-04-04 10:22:00 +01:00
..
about_unix.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
about_windows.go Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00
fadvise_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
fadvise_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
lchtimes_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
lchtimes.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
local_internal_test.go local: fix /path/to/file.rclonelink when -l/--links is in use 2023-04-04 10:22:00 +01:00
local_test.go backend: allow wrapping backend tests to run in make quicktest 2022-06-29 17:30:37 +01:00
local.go local: fix /path/to/file.rclonelink when -l/--links is in use 2023-04-04 10:22:00 +01:00
metadata_bsd.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_linux.go backend: fix typos found by codespell 2023-03-24 20:42:45 +00:00
metadata_other.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_unix.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata_windows.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
metadata.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
read_device_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
read_device_unix.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
remove_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
remove_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
remove_windows.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
setbtime_windows.go all: fix spelling across the project 2022-08-30 11:16:26 +02:00
setbtime.go all: fix spelling across the project 2022-08-30 11:16:26 +02:00
symlink_other.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
symlink.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
tests_test.go local: refactor default os encoding out from local backend into shared encoder lib 2021-08-19 20:14:50 +02:00
xattr_unsupported.go local: add Metadata support #111 2022-06-29 14:29:36 +01:00
xattr.go local: disable xattr support if the filesystems indicates it is not supported 2022-08-09 09:27:56 +01:00