object FileSystem extends FileSystem
- Alphabetic
- By Inheritance
- FileSystem
- FileSystem
- FilePathReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
def
copyDir(src: DirectoryPath, dest: DirectoryPath): Operation[Unit]
copy the content of a directory to another.
copy the content of a directory to another.
- src
path of the directory to copy
- dest
destination directory path
- Definition Classes
- FileSystem
-
def
copyFile(dest: DirectoryPath)(filePath: FilePath): Operation[Unit]
copy a file to a destination directory
copy a file to a destination directory
- dest
destination directory path
- filePath
path of the file to copy
- Definition Classes
- FileSystem
-
def
createFile(filePath: FilePath): Operation[Boolean]
create a new file
create a new file
- Definition Classes
- FileSystem
-
def
delete(dir: DirectoryPath): Operation[Unit]
delete a directory
delete a directory
- Definition Classes
- FileSystem
-
def
delete(file: FilePath): Operation[Unit]
delete files or directories
delete files or directories
- Definition Classes
- FileSystem
-
def
deleteFile(filePath: FilePath): Operation[Boolean]
delete a file
delete a file
- Definition Classes
- FileSystem
-
def
doesNotExist(directoryPath: DirectoryPath): Operation[Boolean]
- returns
true if the directory doesn't exist
- Definition Classes
- FilePathReader
-
def
doesNotExist(filePath: FilePath): Operation[Boolean]
- returns
true if the file doesn't exist
- Definition Classes
- FilePathReader
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exists(directoryPath: DirectoryPath): Operation[Boolean]
- returns
true if the directory exists
- Definition Classes
- FilePathReader
-
def
exists(filePath: FilePath): Operation[Boolean]
- returns
true if the file exists
- Definition Classes
- FilePathReader
-
def
filePaths(dir: DirectoryPath, glob: String, verbose: Boolean): Operation[List[FilePath]]
- returns
the list of file paths accessible from dir
- Definition Classes
- FilePathReader
-
def
filterWithPattern(pattern: String): (FilePath) ⇒ Boolean
filter files according to a regex pattern
filter files according to a regex pattern
- Definition Classes
- FilePathReader
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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)
- Definition Classes
- FilePathReader
-
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
- Definition Classes
- FilePathReader
-
def
listDirectFilePaths(directory: DirectoryPath): Operation[IndexedSeq[FilePath]]
- returns
the files directly accessible from a directory
- Definition Classes
- FilePathReader
-
def
listFilePaths(directory: DirectoryPath): Operation[List[FilePath]]
- returns
the files accessible recursively from a directory
- Definition Classes
- FilePathReader
-
def
md5(filePath: FilePath): Operation[String]
- returns
the MD5 hash of a file
- Definition Classes
- FilePathReader
-
def
mkdirs(path: FilePath): Operation[Unit]
create a the directory containing a file and its parent directories
create a the directory containing a file and its parent directories
- Definition Classes
- FileSystem
-
def
mkdirs(path: DirectoryPath): Operation[Unit]
create a directory and its parent directories
create a directory and its parent directories
- Definition Classes
- FileSystem
-
def
mustBeADirectory(file: File): Operation[Unit]
succeeds if the file is a directory
succeeds if the file is a directory
- Definition Classes
- FilePathReader
-
def
mustExist(file: File): Operation[Unit]
succeeds if the file exists
succeeds if the file exists
- Definition Classes
- FilePathReader
-
def
mustNotBeADirectory(file: File): Operation[Unit]
succeeds if the file is not a directory
succeeds if the file is not a directory
- Definition Classes
- FilePathReader
-
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
read the content of a file as an Array of Bytes
- Definition Classes
- FilePathReader
-
def
readFile(path: FilePath): Operation[String]
- returns
the content of a file encoded as UTF8
- Definition Classes
- FilePathReader
-
def
readFileWithCodec(path: FilePath, codec: Codec): Operation[String]
- returns
the content of a file with a specific codec
- Definition Classes
- FilePathReader
-
def
readLines(filePath: FilePath): Operation[IndexedSeq[String]]
- returns
the content of a file as UTF-8 lines
- Definition Classes
- FilePathReader
-
def
readLinesWithCodec(filePath: FilePath, codec: Codec): Operation[IndexedSeq[String]]
- returns
the content of a file with a specific codec
- Definition Classes
- FilePathReader
-
def
replaceInFile(filePath: FilePath, source: String, target: String): Operation[Unit]
replace a string in a file
replace a string in a file
- Definition Classes
- FileSystem
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unjar(jarUrl: URL, dest: DirectoryPath, regexFilter: String): Operation[Unit]
Unjar the jar (or zip file) specified by "path" to the "dest" directory.
Unjar the jar (or zip file) specified by "path" to the "dest" directory. Filters files which shouldn't be extracted with a regular expression.
- jarUrl
path of the jar file
- dest
destination directory path
- regexFilter
regular expression filtering files which shouldn't be extracted; the expression must capture the path of an entry as group 1 which will then be used relative to dirPath as target path for that entry
- Definition Classes
- FileSystem
-
def
updateFileContent(filePath: FilePath)(update: (String) ⇒ String): Operation[Unit]
modify the content of a file
modify the content of a file
- Definition Classes
- FileSystem
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withEphemeralFile(path: FilePath)(operation: Operation[Unit]): Operation[Unit]
execute an operation with a File, then delete it
execute an operation with a File, then delete it
- Definition Classes
- FileSystem
-
def
writeFile(filePath: FilePath, content: String): Operation[Unit]
write a string to a file as UTF-8
write a string to a file as UTF-8
- Definition Classes
- FileSystem