You are here

public function S3fsFileService::getDestinationFilename in S3 File System 8.3

Same name and namespace in other branches
  1. 4.0.x src/S3fsFileService.php \Drupal\s3fs\S3fsFileService::getDestinationFilename()

Determines the destination path for a file.

Parameters

string $destination: The desired final URI or filepath.

int $replace: Replace behavior when the destination file already exists.

Return value

string|bool The destination filepath, or FALSE if the file already exists and FileSystemInterface::EXISTS_ERROR is specified.

Throws

\Drupal\Core\File\Exception\FileException Implementation may throw FileException or its subtype on failure.

Overrides FileSystemInterface::getDestinationFilename

1 call to S3fsFileService::getDestinationFilename()
S3fsFileService::prepareDestination in src/S3fsFileService.php
Prepares the destination for a file copy or move operation.

File

src/S3fsFileService.php, line 421

Class

S3fsFileService
Provides helpers to operate on files and stream wrappers.

Namespace

Drupal\s3fs

Code

public function getDestinationFilename($destination, $replace) {
  return $this->decorated
    ->getDestinationFilename($destination, $replace);
}