Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

VFS Methods

VFS Methods are one-liners for sending and receiving files to a virtual file system. To view the javadocs go here

These are the different ways of using the VFS methods:

Using Gloovy Step vfs method using gloovy step

Using Invoke Code Step vfs method using invoke step

Using Gloovy vfs method using gloovy step on coder

Using Invoke Code Step vfs method using invoke step on coder

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// Creates a Map to hold the properties
def gDriveProperties = [ 'applicationName' : 'ApplicationName/Version',
                         'clientId': 'your-client-id',
                         'clientSecret': 'your-client-secret',
                         'refreshToken': 'your-refresh-token',
                         'accessToken': 'your-access-token',
                         'autoRetry' : true
                       ]

// Sends a string to a file in google drive
"your string message".sendTo( "gdv://path/where/to/be/sent/foo.txt", gDriveProperties )

// Read the content of a remote file
"gdv://path/where/to/read/foo.txt".vfsGet( gDriveProperties )