object FileUtil
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileUtil
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkFilename(name: String): String
Create an instance of java.io.File safely.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def deleteDirectoryIfEmpty(dir: File): Unit
Delete the given directory if it's empty.
Delete the given directory if it's empty. Do nothing if the given File is not a directory or not empty.
- def deleteIfExists(file: File): File
Delete file or directory forcibly.
- def deleteRecursively(f: File): Boolean
Delete given folder recursively.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def generateFileId: String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getExtension(name: String): String
- def getLfsFilePath(owner: String, repository: String, oid: String): String
- def getMimeType(name: String, bytes: Array[Byte]): String
- def getMimeType(name: String): String
- def getSafeMimeType(name: String, safeMode: Boolean = true): String
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isImage(name: String, safeMode: Boolean = true): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLarge(size: Long): Boolean
- def isText(content: Array[Byte]): Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def readableSize(size: Long): String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withTmpDir[A](dir: File)(action: (File) => A): A