examples package: Using
VfsMethods for virtual file system operations
The functions residing in the
Vfs class are for
managing virtual file systems. The
examples package shows how these methods can be used in
order to create a file in Dropbox, Google Drive, OneDrive,
Amazon S3, FTP, and SFTP.
In the Navigator, expand the
examples package and navigate to the
code folder, then expand the
vfs package. This package contains
the following files and directories, as shown below:
1 2 3 4 5 6 7 8 9 10 11 12 13
Run any of the services under
vfs.services and you should see the files being published.
Credentials for the file services must be provided in order for them to work as expected. Opening each service allows
you to better inspect their contents; line comments are provided for further explanation1.
For your benefit, below is the complete list of the VFS services available in the
vfs.util.VFSDemo.gloop is a generic service that is used by all of the other services in
vfs.services. This is the
service that directly calls functions in
The other services, named specifically after the virtual file system that is the target of their demonstration, are included to make the calls simpler and provide models specific to the service which altogether makes the code easier to understand.
Open the service file to see comments. Make sure comments are also not hidden. ↩