function drupal_rmdir
Same name in other branches
- 7.x includes/file.inc \drupal_rmdir()
Removes a directory.
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystem::rmdir().
See also
https://www.drupal.org/node/2418133
Related topics
1 call to drupal_rmdir()
- FileSystemDeprecationTest::testDeprecatedDrupalRmdir in core/
tests/ Drupal/ KernelTests/ Core/ File/ FileSystemDeprecationTest.php - @expectedDeprecation drupal_rmdir() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystemInterface::rmdir(). See https://www.drupal.org/node/2418133.
File
-
core/
includes/ file.inc, line 1098
Code
function drupal_rmdir($uri, $context = NULL) {
@trigger_error('drupal_rmdir() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \\Drupal\\Core\\File\\FileSystemInterface::rmdir(). See https://www.drupal.org/node/2418133.', E_USER_DEPRECATED);
return \Drupal::service('file_system')->rmdir($uri, $context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.