Create temp cach path recursively if it does not exists (#1188)
* Fix #1187
This commit is contained in:
Родитель
e80f636ac9
Коммит
005c04e4a9
|
@ -1 +1 @@
|
|||
* @gapra-msft @vibhansa-msft @tasherif-msft @souravgupta-msft
|
||||
* @gapra-msft @vibhansa-msft @tasherif-msft @souravgupta-msft @ashruti-msft
|
|
@ -12,6 +12,7 @@
|
|||
- [#1175](https://github.com/Azure/azure-storage-fuse/issues/1175) Divide by 0 exception in Stream in case of direct streaming option.
|
||||
- [#1161](https://github.com/Azure/azure-storage-fuse/issues/1161) Add more verbose logs for pipeline init failures
|
||||
- Return permission denied error for `AuthorizationPermissionMismatch` error from service.
|
||||
- [#1187](https://github.com/Azure/azure-storage-fuse/issues/1187) File-cache path will be created recursively, if it does not exist.
|
||||
|
||||
## 2.0.3 (2023-04-26)
|
||||
**Bug Fixes**
|
||||
|
|
|
@ -247,7 +247,7 @@ func (c *FileCache) Configure(_ bool) error {
|
|||
_, err = os.Stat(c.tmpPath)
|
||||
if os.IsNotExist(err) {
|
||||
log.Err("FileCache: config error [tmp-path does not exist. attempting to create tmp-path.]")
|
||||
err := os.Mkdir(c.tmpPath, os.FileMode(0755))
|
||||
err := os.MkdirAll(c.tmpPath, os.FileMode(0755))
|
||||
if err != nil {
|
||||
log.Err("FileCache: config error creating directory after clean [%s]", err.Error())
|
||||
return fmt.Errorf("config error in %s [%s]", c.Name(), err.Error())
|
||||
|
|
Загрузка…
Ссылка в новой задаче