fix failed cache dir
This commit is contained in:
@@ -105,9 +105,10 @@ func (m *Manager) performMount(provider, webdavURL string) error {
|
|||||||
// Create cache directory if specified
|
// Create cache directory if specified
|
||||||
if err := os.MkdirAll(cacheDir, 0755); err != nil {
|
if err := os.MkdirAll(cacheDir, 0755); err != nil {
|
||||||
m.logger.Warn().Str("cacheDir", cacheDir).Msg("Failed to create cache directory")
|
m.logger.Warn().Str("cacheDir", cacheDir).Msg("Failed to create cache directory")
|
||||||
}
|
} else {
|
||||||
configOpts["CacheDir"] = cacheDir
|
configOpts["CacheDir"] = cacheDir
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if len(configOpts) > 0 {
|
if len(configOpts) > 0 {
|
||||||
// Only add _config if there are options to set
|
// Only add _config if there are options to set
|
||||||
|
|||||||
Reference in New Issue
Block a user