Class opera.io.filesystem

Object
   |
   +--opera.io.filesystem

class opera.io.filesystem


Virtual file system implementation

The FileSystem class represents a virtual file system. Actual files are connected to it by defining mount points from the actual file system. This way file system access can be limited to a selected set of files rather than allow unsecure operations on the local file system directly.

Path references in the virtual file systems always use '/' as the path separator.


Defined in file-io.js


Field Summary
 File mountPoints
          The mount points currently attached to this FileSystem.
 
Constructor Summary
opera.io.filesystem()
            This class has no public constructor.
 
Method Summary
 void browseForDirectory( <String> name, <String> defaultlocation, <Function> callback, <boolean> persistent )
           Open a dialog allowing the user to browse for a directory to mount.
 void browseForFile( <String> name, <String> defaultlocation, <Function> callback, <boolean> persistent, <boolean> multiple, <Array> filter )
           Open a dialog allowing the user to browse for a file to mount.
 void browseForSave( <String> name, <String> defaultlocation, <Function> callback, <boolean> persistent )
           Open a dialog allowing the user to create a new file, which is then mounted.
 File mountSystemDirectory( <String> location, <String> name )
           Mount application or storage system directory.
 void removeMountPoint( <File> mountpoint )
           Remove the given mount point.

Field Detail

mountPoints

File mountPoints

Constructor Detail

opera.io.filesystem

opera.io.filesystem()

Method Detail

browseForDirectory

void browseForDirectory( <String> name, <String> defaultlocation, <Function> callback, <boolean> persistent )

browseForFile

void browseForFile( <String> name, <String> defaultlocation, <Function> callback, <boolean> persistent, <boolean> multiple, <Array> filter )

browseForSave

void browseForSave( <String> name, <String> defaultlocation, <Function> callback, <boolean> persistent )

mountSystemDirectory

File mountSystemDirectory( <String> location, <String> name )

removeMountPoint

void removeMountPoint( <File> mountpoint )


Documentation generated by JSDoc on Fri Jan 29 17:08:19 2010