protected function _tmpFile($Storage, $path, $tmpFolder = null) {
		try {
			$tmpFile = $this->createTmpFile($tmpFolder);
			file_put_contents($tmpFile, $Storage->read($path));

			return $tmpFile;
		} catch (\Exception $e) {
			$this->log($e->getMessage());
			throw new StorageException('Failed to create the temporary file.', 0, $e);
		}
	}