Machine]‘s filesystem.
Obtain via [Machine.dir] or [Machine.tempDir]. The handle stays
bound to the machine it came from: paths are meaningful only on that
machine, and all operations run there.
Constructor
Returns
Directory
Methods
copyTo()
dest on the same machine,
returning a handle to the copy. Fails when dest already exists.
Local: an absolute dest is used as-is. A relative dest is joined
to the SimularFiles root (.. is kept — this is a default base,
not a sandbox).
Android: dest must be absolute.
Parameters
string
required
Returns
Directory
delete()
isReadonly()
Returns
boolean
listDirs()
Returns
Directory
listFiles()
Returns
File
modified()
Returns
number
moveTo()
dest on the same machine. Fails when
dest already exists. Path resolution as in [Directory.copyTo].
Parameters
string
required
name()
Returns
string
path()
Returns
string
rename()
newName
must be a single filename component.
Parameters
string
required

