trait FileProto[F[_]] extends File
- Attributes
- protected
- Alphabetic
- By Inheritance
- FileProto
- File
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def /(name: String): File
A file into this file directory
A file into this file directory
- Definition Classes
- File
- abstract def async: AsyncFile
Returns an async view of the file
Returns an async view of the file
- Definition Classes
- File
- abstract def delete: F[Unit]
Delete a File
- abstract def exists(implicit ctx: ExecutionContext = global): F[Boolean]
Returns true if the File exists
- abstract def fileSystem: FileSystem
Returns the Filesystem for this file
Returns the Filesystem for this file
- Definition Classes
- File
- abstract val global: ExecutionContext
- Attributes
- protected
- Definition Classes
- File
- abstract def isDirectory(implicit ctx: ExecutionContext = global): F[Boolean]
Returns true if the File is a directory
- abstract def isFile(implicit ctx: ExecutionContext = global): F[Boolean]
Returns true if the File is a normal File
- abstract def list: F[Array[String]]
list the contents of a directory.
- abstract def mkdir(implicit ctx: ExecutionContext = global): F[Unit]
Create a directory.
- abstract def name: String
Returns the name of the file or directory denoted by this abstract pathname.
Returns the name of the file or directory denoted by this abstract pathname. This is just the last name in the pathname's name sequence.
- Definition Classes
- File
- abstract def parent: String
Returns the pathname string of this abstract pathname's parent, or empty if this pathname does not name a parent directory.
Returns the pathname string of this abstract pathname's parent, or empty if this pathname does not name a parent directory.
- Definition Classes
- File
- abstract def parentFile: File
The parent File
The parent File
- Definition Classes
- File
- abstract def path: String
The whole file path
The whole file path
- Definition Classes
- File
- abstract def read(encoding: String = Utf8)(implicit ctx: ExecutionContext = global): F[CharSequence]
Read the file.
- abstract def sync: SyncFile
Returns a sync view of the file
Returns a sync view of the file
- Definition Classes
- File
- abstract def withExt(newExt: String): File
Get a new file replacing the extension
Get a new file replacing the extension
- Definition Classes
- File
- abstract def write(data: CharSequence, encoding: String = Utf8)(implicit ctx: ExecutionContext = global): F[Unit]
Write to the file.
Concrete 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]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- File → AnyRef → Any
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)