Machine]‘s filesystem.
Obtain via [Machine.file]. The handle stays bound to the machine it
came from: paths are meaningful only on that machine, and all operations
run there. Content access is text-oriented ([File.read] trims,
[File.write] takes strings).
Constructor
Returns
File
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
File
delete()
extension()
Returns
null | string
isReadonly()
Returns
boolean
modified()
Returns
number
moveTo()
dest on the same machine. Fails when dest
already exists. Path resolution as in [File.copyTo].
Parameters
string
required
name()
Returns
string
path()
Returns
string
read()
Returns
string
rename()
newName must
be a single filename component.
Parameters
string
required
size()
Returns
number
write()
Parameters
string
required
boolean
required

