Class FileFilterUtil
java.lang.Object
ch.qos.logback.core.rolling.helper.FileFilterUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringafterLastSlash(String sregex) static intextractCounter(File file, String stemRegex) static File[]filesInFolderMatchingStemRegex(File file, String stemRegex) Return the set of files matching the stemRegex as found in 'directory'.static intfindHighestCounter(File[] matchingFileArray, String stemRegex) static booleanisEmptyDirectory(File dir) static voidremoveEmptyParentDirectories(File file, int recursivityCount) static voidreverseSortFileArrayByName(File[] fileArray) static Stringstatic voidsortFileArrayByName(File[] fileArray)
-
Constructor Details
-
FileFilterUtil
public FileFilterUtil()
-
-
Method Details
-
sortFileArrayByName
-
reverseSortFileArrayByName
-
afterLastSlash
-
isEmptyDirectory
-
filesInFolderMatchingStemRegex
Return the set of files matching the stemRegex as found in 'directory'. A stemRegex does not contain any slash characters or any folder separators.- Parameters:
file-stemRegex-- Returns:
-
findHighestCounter
-
extractCounter
-
slashify
-
removeEmptyParentDirectories
-