Accessibility

Flash Article

 

Introducing the JSFL File API


Table of Contents

Comments

Working with File URIs

All of the functions in the File API work with files or folders on the file system. Therefore, the functions in the File API always accept an argument that tells the function the location of the file or folder that will be affected. The location of the file or folder is expressed as a string in a form very similar to a website URL. It is called a file URI (Uniform Resource Identifier) and looks like this:

file:///<drive>/folder/anotherFolder/

For example, if you wanted to create a folder on the C drive called config, you would pass the following file URI to the createFolder method of the FLfile object:

file:///C:/config/