You are here

public function S3fsFileService::getTempDirectory in S3 File System 8.3

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

Gets the path of the configured temporary directory.

If the path is not set, it will fall back to the OS-specific default if set, otherwise a directory under the public files directory. It will then set this as the configured directory.

Return value

string A string containing the path to the temporary directory.

Overrides FileSystemInterface::getTempDirectory

File

src/S3fsFileService.php, line 435

Class

S3fsFileService
Provides helpers to operate on files and stream wrappers.

Namespace

Drupal\s3fs

Code

public function getTempDirectory() {
  return $this->decorated
    ->getTempDirectory();
}