object FileUtil

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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.

  2. def deleteIfExists(file: File): File

    Delete file or directory forcibly.

  3. def generateFileId: String
  4. def getContentType(name: String, bytes: Array[Byte]): String
  5. def getExtension(name: String): String
  6. def getLfsFilePath(owner: String, repository: String, oid: String): String
  7. def getMimeType(name: String): String
  8. def isImage(name: String): Boolean
  9. def isLarge(size: Long): Boolean
  10. def isText(content: Array[Byte]): Boolean
  11. def readableSize(size: Long): String
  12. def withTmpDir[A](dir: File)(action: (File) ⇒ A): A