rclone/fs/config
Nick Craig-Wood 46078d391f config: make config file reads reload the config file if needed #4996
Before this change the config file needed to be explicitly reloaded.
This coupled the config file implementation with the backends
needlessly.

This change stats the config file to see if it needs to be reloaded on
every config file operation.

This allows us to remove calls to

- config.SaveConfig
- config.GetFresh

Which now makes the the only needed interface to the config file be
that provided by configmap.Map when rclone is not being configured.

This also adds tests for configfile
2021-03-14 16:03:35 +00:00
..
configfile config: make config file reads reload the config file if needed #4996 2021-03-14 16:03:35 +00:00
configflags feat: add multiple paths support to --compare-dest and --copy-dest flag 2021-02-16 18:17:04 +00:00
configmap all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
configstruct build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
flags flags: improve error message when reading environment vars #4888 2020-12-28 12:26:23 +00:00
obscure config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
testdata Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
authorize.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
config_read_password_unsupported.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_read_password.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
config_test.go config: make config file reads reload the config file if needed #4996 2021-03-14 16:03:35 +00:00
config.go config: make config file reads reload the config file if needed #4996 2021-03-14 16:03:35 +00:00
crypt_internal_test.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
crypt_test.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
crypt.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
default_storage.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
rc_test.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
rc.go config: Wrap config library in an interface 2021-03-11 17:29:26 +00:00
ui_internal_test.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
ui_test.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00
ui.go config: split up main file more and move tests into correct packages 2021-03-11 17:29:26 +00:00