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
    @HotSpotIntrinsicCandidate() @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. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  26. def isBadFileName(string: String): Boolean

    Permalink
  27. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
  30. 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

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

  32. def listFilesRecursive(dir: File): Array[File]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  38. def read(file: File): String

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

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

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

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

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

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

    Permalink
  45. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(): Unit

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

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

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

    Permalink

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped