Rename PicsDir to ImgDir

This commit is contained in:
2025-01-19 20:10:06 +01:00
parent 43c1cb6d9a
commit 7b04149a28
4 changed files with 18 additions and 18 deletions

View File

@@ -48,7 +48,7 @@ func SaveImage(src io.Reader, maxHeight, maxWidth int, path string) (string, err
}
func CleanUpImages(c *Config, db *DB) error {
if err := filepath.Walk(c.PicsDir, func(path string, info fs.FileInfo, err error) error {
if err := filepath.Walk(c.ImgDir, func(path string, info fs.FileInfo, err error) error {
if err != nil {
return fmt.Errorf("error walking images filepath: %v", err)
}