1
mirror of https://github.com/rclone/rclone synced 2024-11-23 00:06:55 +01:00
rclone/lib
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
..
atexit atexit: add Signalled() function - set if called from a signal #4804 2020-11-29 17:44:00 +00:00
bucket doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
cache doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
dircache dircache: factor DirMove code out of backends into dircache 2020-06-25 09:41:36 +01:00
encoder encoder/filename: Wrap scsu package 2021-02-12 11:39:39 +00:00
env ftp,sftp: fix docs for usernames 2020-09-27 11:44:05 +01:00
errors build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
file mount: more user friendly mounting as network drive on windows 2020-12-28 13:59:34 +00:00
israce fs/asyncreader: skip some tests to work around race detector bug 2018-08-20 12:34:29 +01:00
jwtutil jwtutil: Fix error handling 2020-04-23 17:52:14 +01:00
mmap build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
oauthutil config: make config file reads reload the config file if needed #4996 2021-03-14 16:03:35 +00:00
pacer azureblob: add support for managed identities 2020-12-28 13:23:35 +00:00
plugin build: disable lib/plugin under gccgo to make rclone build with gccgo 2020-07-28 09:56:31 +01:00
pool test: Don't run unreliable tests on CI #4171 2020-06-15 21:34:37 +01:00
random random: seed math/rand in one place with crypto strong seed #4783 2020-11-18 17:48:44 +00:00
ranges Spelling fixes 2020-10-14 15:21:31 +01:00
readers lib/readers: add Seek method to PatternReader 2020-06-30 12:01:36 +01:00
rest Use http.NewRequestWithContext where possible after go1.13 minimum version 2021-02-03 17:41:27 +00:00
structs docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
terminal fs: add support for flag --no-console on windows to hide the console window 2021-01-27 18:44:35 +00:00