"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
plugins: Move plugins cache path initialization to initPluginsOrError. Fixes #4951.
negative06272ca74bc6b
diff --git a/fs/rc/webgui/plugins.go b/fs/rc/webgui/plugins.goindex 3ebc0ede5..67205f033 100644--- a/fs/rc/webgui/plugins.go+++ b/fs/rc/webgui/plugins.go@@ -68,13 +68,6 @@ var (initMutex = &sync.Mutex{})-func init() {- cachePath = filepath.Join(config.CacheDir, "webgui")- PluginsPath = filepath.Join(cachePath, "plugins")- pluginsConfigPath = filepath.Join(PluginsPath, "config")--}-// Plugins represents the structure how plugins are saved onto disktype Plugins struct {mutex sync.Mutex@@ -96,6 +89,9 @@ func initPluginsOrError() error {initMutex.Lock()defer initMutex.Unlock()if !initSuccess {+ cachePath = filepath.Join(config.CacheDir, "webgui")+ PluginsPath = filepath.Join(cachePath, "plugins")+ pluginsConfigPath = filepath.Join(PluginsPath, "config")loadedPlugins = newPlugins(availablePluginsJSONPath)err := loadedPlugins.readFromFile()if err != nil {