cleaner script not deleting files

Any questions? Need some help?
Post Reply
datalore44
Supporter
Posts: 23
Joined: 27 Mar 2013, 19:18

cleaner script not deleting files

Post by datalore44 »

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
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: cleaner script not deleting files

Post by rednoah »

It's not supposed to by default. Feel free to pass your own delete patterns via the --def options.
:idea: Please read the FAQ and How to Request Help.
datalore44
Supporter
Posts: 23
Joined: 27 Mar 2013, 19:18

Re: cleaner script not deleting files

Post by datalore44 »

I am sorry I am not sure how I would do that. Can you explain please?
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: cleaner script not deleting files

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
datalore44
Supporter
Posts: 23
Joined: 27 Mar 2013, 19:18

Re: cleaner script not deleting files

Post by datalore44 »

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
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: cleaner script not deleting files

Post by rednoah »

Did you try?

Code: Select all

--def "exts=jpg|nfo|srv|srr|nzb|sfv|idx|sub|txt|part01|part02|par1|par2"
if it works for jpg, nfo, etc it must also work for your partN exts
:idea: Please read the FAQ and How to Request Help.
datalore44
Supporter
Posts: 23
Joined: 27 Mar 2013, 19:18

Re: cleaner script not deleting files

Post by datalore44 »

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: *
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: cleaner script not deleting files

Post by rednoah »

It's just a regular expression, so you can do:

Code: Select all

part\d+
It always works, but u can check the code to see if it does what you think it does.
:idea: Please read the FAQ and How to Request Help.
datalore44
Supporter
Posts: 23
Joined: 27 Mar 2013, 19:18

Re: cleaner script not deleting files

Post by datalore44 »

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.
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: cleaner script not deleting files

Post by rednoah »

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
:idea: Please read the FAQ and How to Request Help.
datalore44
Supporter
Posts: 23
Joined: 27 Mar 2013, 19:18

Re: cleaner script not deleting files

Post by datalore44 »

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.
User avatar
rednoah
The Source
Posts: 23004
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: cleaner script not deleting files

Post by rednoah »

cleaner will never delete video files
:idea: Please read the FAQ and How to Request Help.
Post Reply