stash/pkg/file
WithoutPants e52ac14d56
Fix missing folder corruption during scanning (#6608)
* Add root paths parameter to GetOrCreateFolderHierarchy

Ensures that folders are only created up to the root library paths.

* Create full folder hierarchy when scanning a new folder

During a recursive scan, folders should be created as they are encountered (folders are handled in a single thread). This change applies only during a selective scan. Creates up to the root library folder.

* Create folder hierarchy on new file scan

This should only apply when scanning a specific file, as parent folders should be been created during a recursive scan.

* Fix existing folders with missing parents during scan
2026-02-27 07:42:53 +11:00
..
image Return error when scanning avif in zip (#6356) 2025-12-02 14:27:29 +11:00
video Handle modified files where the case of the filename changed on case-insensitive filesystems (#6327) 2025-12-02 12:53:37 +11:00
clean.go Feature: Add trash support (#6237) 2025-11-26 13:38:19 +11:00
delete.go Feature: Add trash support (#6237) 2025-11-26 13:38:19 +11:00
file.go Refactor file scanning and handling logic (#6498) 2026-01-27 17:42:15 +11:00
folder.go Fix missing folder corruption during scanning (#6608) 2026-02-27 07:42:53 +11:00
folder_rename_detect.go Refactor file scanning and handling logic (#6498) 2026-01-27 17:42:15 +11:00
fs.go Handle symlink zip files (#5249) 2024-09-11 13:58:02 +10:00
handler.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
import.go Handle modified files where the case of the filename changed on case-insensitive filesystems (#6327) 2025-12-02 12:53:37 +11:00
move.go Fix missing folder corruption during scanning (#6608) 2026-02-27 07:42:53 +11:00
scan.go Fix missing folder corruption during scanning (#6608) 2026-02-27 07:42:53 +11:00
walk.go Refactor file scanning and handling logic (#6498) 2026-01-27 17:42:15 +11:00
zip.go Refactor file scanning and handling logic (#6498) 2026-01-27 17:42:15 +11:00