You are here

function backup_migrate_destination_s3::local_path in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.s3.inc \backup_migrate_destination_s3::local_path()
  2. 8.3 includes/destinations.s3.inc \backup_migrate_destination_s3::local_path()
  3. 6.2 includes/destinations.s3.inc \backup_migrate_destination_s3::local_path()
  4. 7.3 includes/destinations.s3.inc \backup_migrate_destination_s3::local_path()
  5. 7.2 includes/destinations.s3.inc \backup_migrate_destination_s3::local_path()

Generate a filepath with the correct prefix.

1 call to backup_migrate_destination_s3::local_path()
backup_migrate_destination_s3::_list_files in includes/destinations.s3.inc
List all files from the s3 destination.

File

includes/destinations.s3.inc, line 133
Functions to handle the s3 backup destination.

Class

backup_migrate_destination_s3
A destination for sending database backups to an s3 server.

Code

function local_path($path) {
  if ($subdir = $this
    ->get_subdir()) {
    $path = str_replace($subdir . '/', '', $path);
  }
  return $path;
}