Working with the Filesystem

One of the basic features of the applications is to be able to interact with the filesystem. Although this is common in Java, it is not the case in JavaScript where these functionalities are more limited.

The SDK provides a Filesystem module that helps you to easily browse the filesystem. The features provided are:

  • Open file and folders. Displays a native search window to browse the filesystem and select some resource

  • Get info about a file or folder, such as file permissions or their children (for folders)

  • Create files and folders

  • Delete files and folders

  • Read file content

  • Write file content

  • Move or rename files and folders

  • Save file on an user selected path, displaying a native "Save as" window to select the path where to store the file

Like all Equo APIs, it’s available in both JavaScript and Java language.