* also clear reports folder created by amc script

This commit is contained in:
Reinhard Pointner 2014-03-24 07:30:23 +00:00
parent 84e4140b54
commit 5011546e71
2 changed files with 5 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class Main {
// clear preferences and cache
System.out.println("Clear cache and temporary files");
for (File folder : getApplicationFolder().getAbsoluteFile().listFiles(FOLDERS)) {
if (matches("cache|temp|grape|logs", folder.getName())) {
if (matches("cache|temp|grape|reports|logs", folder.getName())) {
if (delete(folder)) {
System.out.println("* Delete " + folder);
}

View File

@ -217,6 +217,10 @@ def isEpisode(path, strict = true) {
return MediaDetection.isEpisode(input, strict)
}
def isStructureRoot(path) {
return MediaDetection.isStructureRoot(path as File)
}
def guessMovieFolder(File path) {
return MediaDetection.guessMovieFolder(path)
}