cleaner script not deleting files
-
- Supporter
- Posts: 23
- Joined: 27 Mar 2013, 19:18
cleaner script not deleting files
Hi.
Is it possible to get the cleaner script to delete everything left over in a folder after the videos are moved. My SAB downloads leave .part01,02 etc files in my completed folder and the cleaner script does not delete them.
Thanks
Alan
Is it possible to get the cleaner script to delete everything left over in a folder after the videos are moved. My SAB downloads leave .part01,02 etc files in my completed folder and the cleaner script does not delete them.
Thanks
Alan
Re: cleaner script not deleting files
It's not supposed to by default. Feel free to pass your own delete patterns via the --def options.
-
- Supporter
- Posts: 23
- Joined: 27 Mar 2013, 19:18
Re: cleaner script not deleting files
I am sorry I am not sure how I would do that. Can you explain please?
-
- Supporter
- Posts: 23
- Joined: 27 Mar 2013, 19:18
Re: cleaner script not deleting files
I already went through the docs, but none of the options I have used have worked. I tried the def=terms and def=exts options. The extensions are .part01,02,03 etc and also par2.
This is the batch file I am using at the moment:
REM Organise Files
call filebot.launcher -script fn:amc "d:\completed downloads" --output "\\NSA325" --action move -non-strict --def minFileSize=10485760 --conflict override --def clean=y --def "seriesFormat=tvshows/{n}/{n} - {sxe} - {t}" --def "movieFormat=movies/{n} ({y})"
REM delete left behind empty folders
call filebot.launcher -script fn:cleaner "d:\completed folders" --def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt"
Thanks Again
Alan
This is the batch file I am using at the moment:
REM Organise Files
call filebot.launcher -script fn:amc "d:\completed downloads" --output "\\NSA325" --action move -non-strict --def minFileSize=10485760 --conflict override --def clean=y --def "seriesFormat=tvshows/{n}/{n} - {sxe} - {t}" --def "movieFormat=movies/{n} ({y})"
REM delete left behind empty folders
call filebot.launcher -script fn:cleaner "d:\completed folders" --def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt"
Thanks Again
Alan
Re: cleaner script not deleting files
Did you try?
if it works for jpg, nfo, etc it must also work for your partN exts
Code: Select all
--def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2"
-
- Supporter
- Posts: 23
- Joined: 27 Mar 2013, 19:18
Re: cleaner script not deleting files
That is the first thing I tried but it did not work. I will give it another go and see what happens. Can you use wildcards with this option ie: *
Re: cleaner script not deleting files
It's just a regular expression, so you can do:
It always works, but u can check the code to see if it does what you think it does.
Code: Select all
part\d+
-
- Supporter
- Posts: 23
- Joined: 27 Mar 2013, 19:18
Re: cleaner script not deleting files
Still no luck. I have tried the --def options in my batch file and in a copy of the cleaner script. I copied and pasted your --def options as well just to see if I had done anything different. I cannot delete any files other than what you have specified, not even .srr and .nzb files. Here is my updated batch file:
call filebot -script fn:cleaner d:\test1 --def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2"
Just to be sure it was not something to do with the files, I created a couple of empty txt files and renamed them .srr and .nzb, still nothing. Also there is no error message coming up in the batch file.
Hope you can help.
Alan.
call filebot -script fn:cleaner d:\test1 --def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2"
Just to be sure it was not something to do with the files, I created a couple of empty txt files and renamed them .srr and .nzb, still nothing. Also there is no error message coming up in the batch file.
Hope you can help.
Alan.
Re: cleaner script not deleting files
Works:
http://snag.gy/FeOFT.jpg
I'm testing with empty files here.
As specified the cleaner won't delete:
* files larger than 100 MB
* files where the current folder or any sub-folder of the current folder contains any video files
http://snag.gy/FeOFT.jpg
I'm testing with empty files here.
As specified the cleaner won't delete:
* files larger than 100 MB
* files where the current folder or any sub-folder of the current folder contains any video files
-
- Supporter
- Posts: 23
- Joined: 27 Mar 2013, 19:18
Re: cleaner script not deleting files
Thanks. I found the error my end. It was a south park episode which was only 75mb but cleaner would not delete it. It deleted some files but left others.
Re: cleaner script not deleting files
cleaner will never delete video files