You are here

public function backup_migrate_destination_dropbox::remote_path in Backup and Migrate Dropbox 7.3

Same name and namespace in other branches
  1. 7.2 destinations.dropbox.inc \backup_migrate_destination_dropbox::remote_path()

Generate a remote file path for the given path.

Parameters

string $path:

Return value

string The remote file path, not ending with a /.

4 calls to backup_migrate_destination_dropbox::remote_path()
backup_migrate_destination_dropbox::load_file in ./destinations.dropbox.inc
Loads the file with the given destination specific id.
backup_migrate_destination_dropbox::_delete_file in ./destinations.dropbox.inc
Deletes a file on Dropbox.
backup_migrate_destination_dropbox::_list_files in ./destinations.dropbox.inc
Lists all files from the Dropbox destination.
backup_migrate_destination_dropbox::_save_file in ./destinations.dropbox.inc
Saves a file to the Dropbox destination.

File

./destinations.dropbox.inc, line 356
destinations.dropbox.inc

Class

backup_migrate_destination_dropbox
A destination for sending database backups to a Dropbox account.

Code

public function remote_path($path = '') {
  return '/' . implode('/', array_filter([
    $this->dest_url['path'],
    $path,
  ]));
}