The Skinny On...
FileSystem
The files in your hosts web directory are accessible to
you through the system.filesystem object. It has one
function, get which takes the name of the file as it's
single parameter.
If you wanted to fetch the index.html file out of your
web directory this example would do it for you:
var aFile = system.filesystem.get('index.html');
The get function returns a RealFile object
which you can then use to manipulate the data.
RealFile
The RealFile object has the following properties:
filename- the filename of the file it representssize- the size of the file it representsmimetype- the file's mime typemtime- the file's last modification time
