OpenBD Wiki

From OpenBD
Jump to: navigation, search

NXGetFile()

This function retrieves a remote file from a Nirvanix account. The file does not need to be shareable for it to be retrieved by this function.

Contents

Parameters

NXGetFile( sessionToken, remoteFile, localFile )

  • sessionToken - a current token returned by NXLogin()
  • remoteFile - the path and name of the file you want to retrieve
  • localFile - the path and name of where the file will be saved to on the local file system

Returns

This function returns a CFML structure object with the filename, ext, fullpath of the retrieved file

Example

<cfset sessionKey= NXLogin( appKey, user, pass )> 
<cfset userData = NXGetFile( sessionKey, "/backup/smallimg.jpg", "/tmp/smallimg.jpg" )>


Engine Compatibility

  • OpenBD 1.0+

Personal tools