Class ScriptShellMethods
java.lang.Object
net.filebot.cli.ScriptShellMethods
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic ByteBufferstatic Stringstatic Filecall(RenameAction self, File from, File to) static Stringstatic Stringstatic Filestatic voidcreateIfNotExists(File self) static URLstatic Filestatic voideachMediaFolder(Collection<?> self, Closure<?> closure) static ByteBufferstatic ByteBufferstatic Objectstatic FilefindSibling(File self, Closure<?> closure) static ByteBufferstatic ByteBufferstatic floatstatic floatgetAgeLastModified(File self) static Stringstatic Filestatic ObjectgetAttribute(File self, String attribute) getChildren(File self) static Stringstatic longgetCreationDate(File self) static Filestatic StringgetDisplaySize(File self) static StringgetDisplaySize(Number self) static StringgetExtension(File self) static StringgetExtension(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 BufferedImagegetImage(ByteBuffer self) static Objectstatic intgetLinkCount(File self) static MediaCharacteristicsgetMediaCharacteristics(File self) getMediaFolders(Collection<?> self) static ObjectgetMediaInfo(File self) static ObjectgetMetadata(File self) static StringgetNameWithoutExtension(File self) static Stringstatic FilegetRealPath(File self) static floatgetSimilarity(String self, String other) static FileSizestatic FilegetStructurePathTail(File self) static FilegetStructureRoot(File self) static StringgetText(ByteBuffer self) static net.filebot.MetaAttributeViewstatic GPathResultstatic booleanhasExtension(File self, String... extensions) static booleanhasExtension(String self, String... extensions) static booleanstatic Stringstatic intstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisNetworkDrive(File self) static booleanisSubtitle(File self) static booleanstatic booleanstatic booleanisVerification(File self) static booleanmapByExtension(Collection<?> files) mapByFolder(Collection<?> files) static longstatic Filestatic StringnormalizePunctuation(String self) static ByteBufferstatic ByteBufferstatic ByteBufferstatic Filerelativize(File self, File other) static Filestatic FileresolveSibling(File self, String path) static FilesaveAs(GPathResult node, File file) static FilesaveAs(BufferedImage self, File file) static Filestatic Filestatic Filestatic Filestatic FilesaveAs(ByteBuffer self, File file) static FilesaveAs(ByteBuffer self, String path) static BufferedImagescale(BufferedImage self, int width, int height) static Stringserialize(GPathResult node) static voidsetMetadata(File self, Object object) static Collection<?> sortBySimilarity(Collection<?> self, Object prime, Closure<String> mapper) static StringstripReleaseInfo(String self, boolean strict) static ObjecttoJsonString(Object self) static URLstatic voidstatic ByteBufferunxz(ByteBuffer self) static StringvalidateFileName(String self) static FilevalidateFilePath(File self) static FolderWatchServicewatchFolder(File self, boolean recursive, long delay, FileFilter filter, Closure<?> callback) static FolderWatchServicewatchFolder(File self, Closure<?> callback) static ByteBufferxz(ByteBuffer self)
-
Method Details
-
getAt
-
getAt
-
resolve
-
resolveSibling
-
findSibling
-
listFiles
-
isVideo
-
isAudio
-
isSubtitle
-
isVerification
-
isArchive
-
isImage
-
isDisk
-
isClutter
-
isSystem
-
isSymlink
-
getAttribute
- Throws:
IOException
-
getKey
- Throws:
IOException
-
getLinkCount
- Throws:
IOException
-
isNetworkDrive
-
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
-
hash
-
mismatch
-
move
-
copy
-
duplicate
-
call
-
trash
-
toURL
-
div
-
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
-
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
-
isEpisode
-
isMovie
-
toJsonString
-
apply
-
apply
-
call
-
call
-
call
-