Skip to content

Commit

Permalink
* try to preserve original file structure (to avoid fn clashes)
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed Apr 24, 2015
1 parent 410c8d3 commit f97f4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amc.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ if (unsorted) {
if (unsortedFiles.size() > 0) {
log.info "Processing ${unsortedFiles.size()} unsorted files"
rename(map: unsortedFiles.collectEntries{ original ->
[original, new File(_args.output, getMediaInfo(file:original, format:'''Unsorted/{fn}.{ext}'''))]
[original, new File(_args.output, getMediaInfo(file:original, format:'''Unsorted/{file.structurePathTail}'''))]
})
}
}
Expand Down

0 comments on commit f97f4ae

Please sign in to comment.