Skip to content

Commit

Permalink
Create temp cach path recursively if it does not exists (#1188)
Browse files Browse the repository at this point in the history
* Fix #1187
  • Loading branch information
vibhansa-msft authored Jun 29, 2023
1 parent e80f636 commit 005c04e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @gapra-msft @vibhansa-msft @tasherif-msft @souravgupta-msft
* @gapra-msft @vibhansa-msft @tasherif-msft @souravgupta-msft @ashruti-msft
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
2 changes: 1 addition & 1 deletion component/file_cache/file_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 005c04e

Please sign in to comment.