Object

scalan.util

FileUtil

Related Doc: package util

Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val AcceptAllDirectories: FilenameFilter

    Permalink
  5. final val AcceptAllFiles: FilenameFilter

    Permalink
  6. def addHeader(file: File, header: String): Unit

    Permalink

    Add header into the file

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def captureStdOutAndErr(func: ⇒ Unit): String

    Permalink
  9. def classPathLastModified(source: String, classLoader: ClassLoader = getClass.getClassLoader): Long

    Permalink
  10. def cleanFileName(string: String): String

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copy(source: File, target: File): Unit

    Permalink
  13. def copyFromClassPath(source: String, target: File, classLoader: ClassLoader = getClass.getClassLoader): Unit

    Permalink
  14. def copyToDir(source: File, targetDir: File): Unit

    Permalink

    Copy file source to targetDir, keeping the original file name

  15. def currentWorkingDir: File

    Permalink
  16. def delete(fileOrDirectory: File): Unit

    Permalink

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

  17. def deleteIfExist(fileOrDirectory: File): Unit

    Permalink
  18. def deleteRecursive(path: Path): Unit

    Permalink
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def extractModuleName(path: String, sourceDir: String = "src/main/scala"): String

    Permalink
  22. def file(first: File, rest: String*): File

    Permalink
  23. def file(first: String, rest: String*): File

    Permalink
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. def isBadFileName(string: String): Boolean

    Permalink
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def jarUrlToJarFile(url: URL): File

    Permalink
  30. def listDirectories(dir: File): Array[File]

    Permalink
  31. def listDirectoriesRecursive(dir: File): Array[File]

    Permalink

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

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

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

    Permalink

    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]

    Permalink
  34. def modifyName(file: File)(f: (String) ⇒ String): File

    Permalink
  35. def move(source: File, target: File): Unit

    Permalink
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. def read(file: File): String

    Permalink
  40. def readAndCloseStream(stream: InputStream): String

    Permalink
  41. def replaceOrAppendExtension(fileName: String, extension: String): String

    Permalink
  42. def stripExtension(fileName: String): String

    Permalink
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. def urlToFile(url: URL): File

    Permalink
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def withFile(file: File)(f: (PrintWriter) ⇒ Unit): Unit

    Permalink
  50. def withStdOutAndErr(out: PrintStream)(func: ⇒ Unit): Unit

    Permalink
  51. def write(file: File, text: String): Unit

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped