Method: CloudFS::RestAdapter#move_file

Defined in:
lib/cloudfs/rest_adapter.rb

#move_file(path, destination, name, exists: 'RENAME') ⇒ Hash

Move file to specified destination folder

Parameters:

  • source file path

  • destination folder path

  • name of moved file

  • (defaults to: 'RENAME')

    ('FAIL', 'OVERWRITE', 'RENAME') action to take in case of a conflict with an existing file An unused integer is appended to file name if exists: RENAME

Returns:

  • metadata of moved file

Raises:



448
449
450
# File 'lib/cloudfs/rest_adapter.rb', line 448

def move_file(path, destination, name, exists: 'RENAME')
  move(Constants::ENDPOINT_FILES, path, destination, name, exists: exists)
end