protected static function S3fsTest::fileDelete in S3 File System 8.3
Same name and namespace in other branches
- 4.0.x tests/src/Functional/S3fsTest.php \Drupal\Tests\s3fs\Functional\S3fsTest::fileDelete()
File delete wrapper that returns result.
Parameters
\Drupal\file\FileInterface $file: A file object to delete.
Return value
bool TRUE if file was deleted, FALSE otherwise.
1 call to S3fsTest::fileDelete()
- S3fsTest::testStreamWrapperCoverage in tests/
src/ Functional/ S3fsTest.php - Coverage test for the stream wrapper.
File
- tests/
src/ Functional/ S3fsTest.php, line 321
Class
- S3fsTest
- S3 File System Tests.
Namespace
Drupal\Tests\s3fs\FunctionalCode
protected static function fileDelete(FileInterface $file) {
$file
->delete();
$exists = file_exists($file
->getFileUri());
return !$exists;
}