maker.utils

FileUtils

trait FileUtils extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FileUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class RichBufferedWriter(writer: BufferedWriter) extends Product with Serializable

    Don't want to use PrintWriter as that swallows exceptions

  2. case class RichFile(plainFile: File) extends Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): scala.Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def allFiles(f: File): List[File]

  7. def allProperFiles(directory: File): Seq[File]

  8. def appendToFile(file: File, text: String): Unit

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def cleanRegularFilesLeavingDirectories(file: File): Unit

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def copyDirectoryAndPreserve(from: File, to: File): Unit

  13. def cwd: File

  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def extractMapFromFile[K, V](file: File, extractor: (String) ⇒ (K, V)): Map[K, V]

  17. def file(f: String, d: String*): File

  18. def file(f: File, d: String*): File

  19. def fileIsLaterThan(target: File, dirs: List[File]): Boolean

  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def findClasses(dir: File): Seq[File]

  22. def findFiles(pred: (File) ⇒ Boolean, dirs: Seq[File]): Seq[File]

  23. def findFilesWithExtension(ext: String, dirs: File*): Seq[File]

  24. def findFilesWithExtensions(exts: List[String], dirs: Seq[File]): Seq[File]

  25. def findJars(dir: File): Seq[File]

  26. def findJars(dirs: Seq[File]): Seq[File]

  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def hashCode(): scala.Int

    Definition Classes
    AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def lastModifiedFile(files: Seq[File]): Option[File]

  31. def lastModifiedFileTime(files: Seq[File]): Option[Long]

  32. def lastModifiedProperFileTime(files: Seq[File]): Option[Long]

  33. def mkdir(dir: File, name: String): File

  34. def mkdir(dir: File): File

  35. def mkdirs(dir: File, subdirs: String*): File

  36. def nameAndExt(file: File): (String, String)

  37. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  40. def readLines(file: File): Seq[String]

  41. def recursiveDelete(file: File): Unit

  42. def replaceInFile(file: File, placeholder: String, repl: String): File

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

    Definition Classes
    AnyRef
  44. def tempDir(name: String = "makerTempFile"): File

  45. implicit def toRichBufferedWriter(writer: BufferedWriter): RichBufferedWriter

  46. implicit def toRichFile(f: File): RichFile

  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. def traverseDirectories(root: File, fn: (File) ⇒ Unit): Unit

  49. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. def withFileAppender(file: File)(f: Function1[BufferedWriter, _]): Unit

  53. def withFileLineReader[A](file: File)(f: (String) ⇒ A): List[A]

  54. def withFileReader[T](file: File)(f: (BufferedReader) ⇒ T): T

  55. def withFileWriter(file: File)(f: Function1[BufferedWriter, _]): Unit

  56. def withTempDir[A](f: (File) ⇒ A): A

  57. def withTempFile[A](f: (File) ⇒ A, deleteOnExit: Boolean = true): A

  58. def withTestDir[A](f: (File) ⇒ A): A

  59. def writeMapToFile[K, V](file: File, map: Map[K, V], fn: (K, V) ⇒ String): Unit

  60. def writeToFile(file: File, text: String): File

  61. def writeToFile(path: String, text: String): File

Inherited from AnyRef

Inherited from Any

Ungrouped