Reasonably Smart Documentation

The Open Web Cloud

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: