return $destination;
} /**
* {@inheritdoc}
*/
public function delete($path) { if (is_file($path)) { if (!
$this->
unlink($path)) { $this->logger->
error("Failed to unlink file '%path'.",
['%path' =>
$path]);
throw new FileException("Failed to unlink file '
$path'."
);
} return TRUE;
} if (is_dir($path)) { $this->logger->
error("Cannot delete '%path' because it is a directory. Use deleteRecursive() instead.",
['%path' =>
$path]);
throw new NotRegularFileException("Cannot delete '
$path' because it is a directory. Use deleteRecursive() instead."
);
} // Return TRUE for non-existent file, but log that nothing was actually
// deleted, as the current state is the intended result.