object Filesystem
- Alphabetic
- By Inheritance
- Filesystem
- 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
basename(path: String): String
Return the path string with the final extension removed.
Return the path string with the final extension removed.
- path
The path whose extension is to be removed (if it has one)
- returns
The path minus the extension
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
copy(source: File, target: File): Unit
Copy the given file, obliterating any existing file that already has the target name.
Copy the given file, obliterating any existing file that already has the target name.
- source
The path to the file to be copied
- target
The path to the place where the file is to be copied
-
def
copy(source: String, target: String): Unit
Copy the given file, obliterating any existing file that already has the target name.
Copy the given file, obliterating any existing file that already has the target name.
- source
The path to the file to be copied
- target
The path to the place where the file is to be copied
-
def
ensureDirectory(path: String): String
Ensure the existence of a given directory.
Ensure the existence of a given directory.
- path
The path to the directory
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def exists(path: String): Boolean
-
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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
join(parts: String*): String
Join the given parts into a single string, with the parts separated by the system's file separator.
Join the given parts into a single string, with the parts separated by the system's file separator.
- parts
A list of parts which are to be concatenated
- returns
The parts concatenated, separated by the file separator
-
def
mapToByteArray(path: String, data: Array[Byte], startIndex: Int, size: Int): Unit
Make a contiguous chunk of a file available in the given array.
Make a contiguous chunk of a file available in the given array.
- path
The path to the file which is to be (partially) mapped into memory
- data
An array to contain the portion of the file in question
- startIndex
The offset into the file where the contiguous region begins
- size
The size of the contiguous region
-
def
move(source: File, target: File): Unit
Move (rename) the given file, obliterating any existing file that already has the target name.
Move (rename) the given file, obliterating any existing file that already has the target name.
- source
A java.nio.file.File representing the desired source
- target
A java.nio.file.File representing the desired destination
-
def
move(source: String, target: String): Unit
Move (rename) the given file, obliterating any existing file that already has the target name.
Move (rename) the given file, obliterating any existing file that already has the target name.
- source
The path to the file before moving
- target
The path to the file after moving
-
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
readText(file: File): String
Return the contents of a file, interpreted as text, as a string.
Return the contents of a file, interpreted as text, as a string.
- file
The the file to be read
- returns
A string containing the file's contents
-
def
readText(path: String): String
Return the contents of a file, interpreted as text, as a string.
Return the contents of a file, interpreted as text, as a string.
- path
The path to the file to be read
- returns
A string containing the file's contents
-
def
slurp(path: String, bs: Int = 1<<18): Array[Byte]
Read the contents of a file into an array.
Read the contents of a file into an array.
- path
The path to the file to be read
- bs
The block size; The file will be read in chunks of this size
- returns
An array of bytes containing the file contents
-
def
split(path: String): (String, String)
Split the given path into a tuple of base and extension.
Split the given path into a tuple of base and extension.
- path
The path which is to be split
- returns
A tuple of the basename and the extension of the given path
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toMappedByteBuffer(path: String): ByteBuffer
Read the contents of a file into a MappedByteBuffer.
Read the contents of a file into a MappedByteBuffer.
- path
The path to the file to be read
- returns
A MappedByteBuffer containing the mapped file contents
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
writeBytes(path: String, bytes: Array[Byte]): Unit
Write the given array of bytes to the file pointed to by the given path.
Write the given array of bytes to the file pointed to by the given path. This is a truncating write.
- path
The path to the file where the data are to be written
- bytes
An array of bytes containing the data to be written
-
def
writeText(file: File, text: String): Unit
Write the given text into a file.
Write the given text into a file. This is a truncating write.
- text
A string containing the text to be written
-
def
writeText(path: String, text: String): Unit
Write the given text into the file pointed to by the given path.
Write the given text into the file pointed to by the given path. The is a truncating write.
- path
The path to the file where the text will be written
- text
A string containing the text to be written