The File data type

Roo provides access to the file system via the File data type. A File object represents a file or folder on disk.

To create a reference to a file on disk, use the built-in File() constructor:

var file = File('/Users/garry/Desktop/test.txt')
var folder = File('/Users/garry/Downloads')

Comprehensive documentation of the File object’s getters and setters can be found in the File section.