trait FilePathReader extends AnyRef
Methods to read files on the FileSystem
- Alphabetic
- By Inheritance
- FilePathReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def doesNotExist(directoryPath: DirectoryPath): Operation[Boolean]
- returns
true if the directory doesn't exist
- def doesNotExist(filePath: FilePath): Operation[Boolean]
- returns
true if the file doesn't exist
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(directoryPath: DirectoryPath): Operation[Boolean]
- returns
true if the directory exists
- def exists(filePath: FilePath): Operation[Boolean]
- returns
true if the file exists
- def filePaths(dir: DirectoryPath, glob: String, verbose: Boolean): Operation[List[FilePath]]
- returns
the list of file paths accessible from dir
- def filterWithPattern(pattern: String): (FilePath) => Boolean
filter files according to a regex pattern
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def globToPattern(glob: String): String
- returns
the regular expression equivalent to a glob pattern (see the specs for Fragments)
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listDirectDirectoryPaths(directory: DirectoryPath): Operation[IndexedSeq[DirectoryPath]]
- returns
the files directly accessible from a directory
- def listDirectFilePaths(directory: DirectoryPath): Operation[IndexedSeq[FilePath]]
- returns
the files directly accessible from a directory
- def listFilePaths(directory: DirectoryPath): Operation[List[FilePath]]
- returns
the files accessible recursively from a directory
- def md5(filePath: FilePath): Operation[String]
- returns
the MD5 hash of a file
- def mustBeADirectory(file: File): Operation[Unit]
succeeds if the file is a directory
- def mustExist(file: File): Operation[Unit]
succeeds if the file exists
- def mustNotBeADirectory(file: File): Operation[Unit]
succeeds if the file is not a directory
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def readBytes(filePath: FilePath): Operation[Array[Byte]]
read the content of a file as an Array of Bytes
- def readFile(path: FilePath): Operation[String]
- returns
the content of a file encoded as UTF8
- def readFileWithCodec(path: FilePath, codec: Codec): Operation[String]
- returns
the content of a file with a specific codec
- def readLines(filePath: FilePath): Operation[IndexedSeq[String]]
- returns
the content of a file as UTF-8 lines
- def readLinesWithCodec(filePath: FilePath, codec: Codec): Operation[IndexedSeq[String]]
- returns
the content of a file with a specific codec
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()