Package net.filebot.cli
Class ScriptShellMethods
java.lang.Object
net.filebot.cli.ScriptShellMethods
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static ByteBuffer
static String
static File
call
(RenameAction self, File from, File to) static String
static String
static File
static void
createIfNotExists
(File self) static URL
static File
static void
eachMediaFolder
(Collection<?> self, Closure<?> closure) static ByteBuffer
static ByteBuffer
static Object
static File
findSibling
(File self, Closure<?> closure) static ByteBuffer
static ByteBuffer
static float
static float
getAgeLastModified
(File self) static String
static File
static Object
getAttribute
(File self, String attribute) getChildren
(File self) static String
static long
getCreationDate
(File self) static File
static String
getDisplaySize
(File self) static String
getDisplaySize
(Number self) static String
getExtension
(File self) static String
getExtension
(String self) getFiles
(Collection<?> self) getFiles
(Collection<?> self, Closure<?> closure) getFolders
(File self) getFolders
(File self, Closure<?> closure) getFolders
(Collection<?> self) getFolders
(Collection<?> self, Closure<?> closure) static BufferedImage
getImage
(ByteBuffer self) static Object
static int
getLinkCount
(File self) static MediaCharacteristics
getMediaCharacteristics
(File self) getMediaFolders
(Collection<?> self) static Object
getMediaInfo
(File self) static Object
getMetadata
(File self) static String
getNameWithoutExtension
(File self) static String
static File
getRealPath
(File self) static float
getSimilarity
(String self, String other) static FileSize
static File
getStructurePathTail
(File self) static File
getStructureRoot
(File self) static String
getText
(ByteBuffer self) static net.filebot.MetaAttributeView
static GPathResult
static boolean
hasExtension
(File self, String... extensions) static boolean
hasExtension
(String self, String... extensions) static boolean
static String
static int
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
isSubtitle
(File self) static boolean
static boolean
static boolean
isVerification
(File self) static boolean
mapByExtension
(Collection<?> files) mapByFolder
(Collection<?> files) static long
static File
static String
normalizePunctuation
(String self) static ByteBuffer
static ByteBuffer
static ByteBuffer
static File
relativize
(File self, File other) static File
static File
resolveSibling
(File self, String path) static File
saveAs
(GPathResult node, File file) static File
saveAs
(BufferedImage self, File file) static File
static File
static File
static File
static File
saveAs
(ByteBuffer self, File file) static File
saveAs
(ByteBuffer self, String path) static BufferedImage
scale
(BufferedImage self, int width, int height) static String
serialize
(GPathResult node) static void
setMetadata
(File self, Object object) static Collection
<?> sortBySimilarity
(Collection<?> self, Object prime, Closure<String> mapper) static String
stripReleaseInfo
(String self, boolean strict) static Object
toJsonString
(Object self) static URL
static void
static ByteBuffer
unxz
(ByteBuffer self) static String
validateFileName
(String self) static File
validateFilePath
(File self) static FolderWatchService
watchFolder
(File self, boolean recursive, long delay, FileFilter filter, Closure<?> callback) static FolderWatchService
watchFolder
(File self, Closure<?> callback) static ByteBuffer
xz
(ByteBuffer self)
-
Method Details
-
getAt
-
getAt
-
resolve
-
resolveSibling
-
findSibling
- Throws:
Exception
-
listFiles
-
isVideo
-
isAudio
-
isSubtitle
-
isVerification
-
isArchive
-
isImage
-
isDisk
-
isClutter
-
isSystem
-
isSymlink
-
getAttribute
- Throws:
IOException
-
getKey
- Throws:
IOException
-
getLinkCount
- Throws:
IOException
-
getCreationDate
- Throws:
IOException
-
getRealPath
-
getChildren
-
getDir
-
hasFile
-
getFiles
-
getFiles
-
getFiles
-
getFiles
-
getFolders
-
getFolders
-
getFolders
-
getFolders
-
getMediaFolders
- Throws:
IOException
-
eachMediaFolder
- Throws:
IOException
-
getNameWithoutExtension
-
getNameWithoutExtension
-
getExtension
-
getExtension
-
hasExtension
-
hasExtension
-
isDerived
-
validateFileName
-
validateFilePath
-
getAge
- Throws:
IOException
-
getAgeLastModified
- Throws:
IOException
-
getSize
- Throws:
IOException
-
getDisplaySize
-
getDisplaySize
-
createIfNotExists
- Throws:
IOException
-
relativize
- Throws:
IOException
-
mapByFolder
-
mapByExtension
-
normalizePunctuation
-
stripReleaseInfo
-
getCRC32
- Throws:
Exception
-
hash
- Throws:
Exception
-
mismatch
- Throws:
Exception
-
move
- Throws:
Exception
-
copy
- Throws:
Exception
-
duplicate
- Throws:
Exception
-
call
- Throws:
Exception
-
trash
- Throws:
Exception
-
toURL
- Throws:
Exception
-
div
- Throws:
Exception
-
cache
- Throws:
Exception
-
getText
-
encode
- Throws:
IOException
-
xz
- Throws:
IOException
-
unxz
- Throws:
IOException
-
getImage
-
scale
-
saveAs
- Throws:
IOException
-
fetch
- Throws:
IOException
-
get
- Throws:
IOException
-
get
- Throws:
IOException
-
post
public static ByteBuffer post(URL self, Map<String, ?> parameters, Map<String, throws IOExceptionString> requestParameters) - Throws:
IOException
-
post
public static ByteBuffer post(URL self, String text, Map<String, String> requestParameters) throws IOException- Throws:
IOException
-
post
public static ByteBuffer post(URL self, byte[] postData, String contentType, Map<String, String> requestParameters) throws IOException- Throws:
IOException
-
head
- Throws:
IOException
-
saveAs
- Throws:
IOException
-
saveAs
- Throws:
IOException
-
saveAs
- Throws:
IOException
-
saveAs
- Throws:
IOException
-
saveAs
- Throws:
IOException
-
saveAs
- Throws:
IOException
-
getXml
- Throws:
Exception
-
serialize
-
saveAs
- Throws:
Exception
-
getStructureRoot
- Throws:
Exception
-
getStructurePathTail
- Throws:
Exception
-
watchFolder
-
watchFolder
public static FolderWatchService watchFolder(File self, boolean recursive, long delay, FileFilter filter, Closure<?> callback) -
getSimilarity
-
sortBySimilarity
public static Collection<?> sortBySimilarity(Collection<?> self, Object prime, Closure<String> mapper) -
isBetter
-
getXattr
-
getMetadata
-
setMetadata
-
getMediaCharacteristics
-
getMediaInfo
- Throws:
Exception
-
ffprobe
- Throws:
Exception
-
isEpisode
-
isMovie
-
toJsonString
-
apply
-
apply
-
call
- Throws:
Exception
-
call
- Throws:
Exception
-
call
- Throws:
Exception
-