o

scalan.util

FileUtil

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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final val AcceptAllDirectories: FilenameFilter
  5. final val AcceptAllFiles: FilenameFilter
  6. def addHeader(file: File, header: String): Unit

    Add header into the file

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def captureStdOutAndErr(func: ⇒ Unit): String
  9. def classPathLastModified(source: String, classLoader: ClassLoader = getClass.getClassLoader): Long
  10. def cleanFileName(string: String): String

    Accepts an arbitrary (printable) string and returns a similar string which can be used as a file name.

    Accepts an arbitrary (printable) string and returns a similar string which can be used as a file name. For convenience, replaces spaces with hyphens.

  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def copy(source: File, target: File): Unit
  13. def copyFromClassPath(source: String, target: File, classLoader: ClassLoader = getClass.getClassLoader): Unit
  14. def copyToDir(source: File, targetDir: File): Unit

    Copy file source to targetDir, keeping the original file name

  15. def currentWorkingDir: File
  16. def delete(fileOrDirectory: File): Unit

    Like fileOrDirectory.delete() but works for non-empty directories and throws exceptions instead of returning false on failure

  17. def deleteIfExist(fileOrDirectory: File): Unit
  18. def deleteRecursive(path: Path): Unit
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. def extractModuleName(path: String, sourceDir: String = "src/main/scala"): String
  22. def file(first: File, rest: String*): File
  23. def file(first: String, rest: String*): File
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def isBadFileName(string: String): Boolean
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def jarUrlToJarFile(url: URL): File
  30. def listDirectories(dir: File): Array[File]
  31. def listDirectoriesRecursive(dir: File): Array[File]

    Starts from dir and builds an array of sub-directories including dir

  32. def listFiles(dir: File, filter: FilenameFilter = AcceptAllFiles): Array[File]

    Same as dir.listFiles(filter), except it returns empty array instead of null if dir doesn't exist or is not a directory

  33. def listFilesRecursive(dir: File): Array[File]
  34. def modifyName(file: File)(f: (String) ⇒ String): File
  35. def move(source: File, target: File): Unit
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def read(file: File): String
  40. def readAndCloseStream(stream: InputStream): String
  41. def replaceOrAppendExtension(fileName: String, extension: String): String
  42. def stripExtension(fileName: String): String
  43. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. def urlToFile(url: URL): File
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  49. def withFile(file: File)(f: (PrintWriter) ⇒ Unit): Unit
  50. def withStdOutAndErr(out: PrintStream)(func: ⇒ Unit): Unit
  51. def write(file: File, text: String): Unit

Inherited from AnyRef

Inherited from Any

Ungrouped