mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-17 11:16:35 -07:00
chore: better request logging, remove unused env
This commit is contained in:
parent
0030628db1
commit
a14fc55d55
6 changed files with 30 additions and 23 deletions
|
|
@ -133,7 +133,7 @@ func saveImage(filename string, size ImageSize, data io.Reader) error {
|
|||
cacheDir := filepath.Join(configDir, ImageCacheDir)
|
||||
|
||||
// Ensure the cache directory exists
|
||||
err := os.MkdirAll(filepath.Join(cacheDir, string(size)), os.ModePerm)
|
||||
err := os.MkdirAll(filepath.Join(cacheDir, string(size)), 0744)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create full image cache directory: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue