object FileUtil
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileUtil
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
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 generateFileId: String
- def getContentType(name: String, bytes: Array[Byte]): String
- def getExtension(name: String): String
- def getLfsFilePath(owner: String, repository: String, oid: String): String
- def getMimeType(name: String): String
- def isImage(name: String): Boolean
- def isLarge(size: Long): Boolean
- def isText(content: Array[Byte]): Boolean
- def readableSize(size: Long): String
- def withTmpDir[A](dir: File)(action: (File) ⇒ A): A