fix: normalize organize category roots

This commit is contained in:
ShukeBta
2026-06-25 08:54:42 +08:00
parent 89af1dad32
commit 16c3ed239a
10 changed files with 213 additions and 15 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func (o *OrganizerService) OrganizeDirectory(ctx context.Context, opts OrganizeO
if _, ok := ParseCloudLibraryMount(requestedDest); ok {
return nil, errors.New("organize destination must be a local writable media directory; enable cloud transfer in external storage when writing to cloud")
}
dest := redirectOrganizeStagingRoot(resolveMappedDestinationPath(requestedDest))
dest := normalizeOrganizeDestinationRoot(resolveMappedDestinationPath(requestedDest))
if dest == "" || dest == "." {
return nil, errors.New("destination path required")
}