fix failed cache dir

This commit is contained in:
Mukhtar Akere
2025-08-08 12:48:05 +01:00
parent 1d243dd12b
commit 27e7bc8f47

View File

@@ -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