File object

  • Revision slug: SpiderMonkey/File_object
  • Revision title: File object
  • Revision id: 95207
  • Created:
  • Creator: Evan Prodromou
  • Is current revision? No
  • Comment /* Properties */

Revision Content

The SpiderMonkey JavaScript engine can (optionally) provide a class for filesystem files.

Summary

Created By

Parameters

Description

Properties

length

parent

path

name

input -- stdin

isDirectory

isFile

error -- stderr

exists

canRead

canWrite

canAppend

canReplace

isOpen

type

mode

creationTime

lastModified

size

hasRandomAccess

hasAutoFlush

position

isNative

output -- stdout

Methods

open

close

remove

copyTo

renameTo

flush

seek

read

readln

readAll

write

writeln

writeAll

list

mkdir

toString

toURL

Examples

Revision Source

<p>The <a href="en/SpiderMonkey">SpiderMonkey</a> JavaScript engine can (optionally) provide a class for filesystem files.
</p>
<h3 name="Summary"> Summary </h3>
<h3 name="Created_By"> Created By </h3>
<h3 name="Parameters"> Parameters </h3>
<h3 name="Description"> Description </h3>
<h3 name="Properties"> Properties </h3>
<p>length
</p><p>parent
</p><p>path
</p><p>name
</p><p>input -- stdin
</p><p>isDirectory
</p><p>isFile
</p><p>error -- stderr
</p><p>exists
</p><p>canRead
</p><p>canWrite
</p><p>canAppend
</p><p>canReplace
</p><p>isOpen
</p><p>type
</p><p>mode
</p><p>creationTime
</p><p>lastModified
</p><p>size
</p><p>hasRandomAccess
</p><p>hasAutoFlush
</p><p>position
</p><p>isNative
</p><p>output -- stdout
</p>
<h3 name="Methods"> Methods </h3>
<p>open
</p><p>close
</p><p>remove
</p><p>copyTo
</p><p>renameTo
</p><p>flush
</p><p>seek
</p><p>read
</p><p>readln
</p><p>readAll
</p><p>write
</p><p>writeln
</p><p>writeAll
</p><p>list
</p><p>mkdir
</p><p>toString
</p><p>toURL
</p>
<h3 name="Examples"> Examples </h3>
Revert to this revision