ExFileOps

final
class ExFileOps(x: Ex[URI]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def /(child: Ex[String]): Ex[URI]
def base: Ex[String]

Returns the name part of the file and drops the extension (if any).

Returns the name part of the file and drops the extension (if any).

def delete: Act

Deletes the file.

Deletes the file.

'''Note:''' this happens asynchronously.

def ext: Ex[String]

Returns the extension of the file (lower-cased, period dropped). Returns and empty string if no extension is given.

Returns the extension of the file (lower-cased, period dropped). Returns and empty string if no extension is given.

def list: Ex[Seq[URI]] & Act

Lists the contains of a directory.

Lists the contains of a directory.

'''Note:''' this happens asynchronously, so one has to wait for changed to see the updated sequence.

def mkDir: Act

Creates the directory and possibly parent directories denoted by this file.

Creates the directory and possibly parent directories denoted by this file.

'''Note:''' this happens asynchronously.

def name: Ex[String]

Returns the name part of the file.

Returns the name part of the file.

def parentOption: Ex[Option[URI]]

Returns the parent directory if it exists.

Returns the parent directory if it exists.

def path: Ex[String]

Returns the string representation of the file's path.

Returns the string representation of the file's path.

def replaceExt(s: Ex[String]): Ex[URI]

Replaces the extension part of this file. Parameter s may or may not contain a leading period.

Replaces the extension part of this file. Parameter s may or may not contain a leading period.

def replaceName(s: Ex[String]): Ex[URI]

Replaces the name part of this file, keeping the parent directory.

Replaces the name part of this file, keeping the parent directory.