Page 1 of 1
[Question] Processing folder as a file at cli
Posted: 07 Apr 2015, 05:54
by Corey3443
Hello,
Just wondering how you replicate the control+shift drag and drop action in cli. So instead of processing the folders contents i want to process the folder itself. I know i can include a folder path in the rename string when processing files, but i wish to keep these tasks separate for a reason.
Couldn't find it using google or searching on the forum (might not have worded it correctly tho)
Trying to integrate this into a massive custom script that is cron'd each night.
Thanks
Re: [Question] Processing folder as a file at cli
Posted: 07 Apr 2015, 06:06
by rednoah
@see
viewtopic.php?f=4&t=5#p2211
If you run things daily you better make extra sure that you're not processing the same files/folders over and over. You will get banned if you waste resources of other services.
Re: [Question] Processing folder as a file at cli
Posted: 07 Apr 2015, 06:35
by Corey3443
Dunno how i missed "target" switch. I read that thread twice. fail =)
rednoah wrote:
If you run things daily you better make extra sure that you're not processing the same files/folders over and over. You will get banned if you waste resources of other services.
All the files are logged, check-summed, renamed than moved and linked; so only time they will be reprocessed is if a new higher quality copy is placed in the target folder or if i force it. so should be fine.
Thanks.
Re: [Question] Processing folder as a file at cli
Posted: 07 Apr 2015, 06:53
by rednoah
Alright, sounds like you know what you're doing.

Re: [Question] Processing folder as a file at cli
Posted: 10 Apr 2015, 15:11
by Corey3443
Sorry to be a pain but i just had some times to test this and it didn't work. Is --target only available to that script (not a general cmd) because no matter what it seems to process the contents of the folder, not the folder itself.
Re: [Question] Processing folder as a file at cli
Posted: 10 Apr 2015, 15:37
by rednoah
--target=folder is only available in the script (see source) and it's not possible to "force folder mode" in normal -rename calls.
You think you need to rename the movie folders rather than the files you should think again exactly why you need that rather than sorting files into a new clean structure.