Filesystem convenience functions.

  1. 8.0.x includes/filesystem.inc filesystemfunctions
  2. 6.x includes/filesystem.inc filesystemfunctions
  3. 7.x includes/filesystem.inc filesystemfunctions
  4. 4.x includes/drush.inc filesystemfunctions
  5. 5.x includes/filesystem.inc filesystemfunctions
  6. master includes/filesystem.inc filesystemfunctions

Functions

Namesort descending Location Description
drush_copy_dir includes/drush.inc Copy $src to $dest.
drush_delete_dir includes/drush.inc Deletes the provided file or folder and everything inside it.
drush_find_tmp includes/drush.inc Returns the path to a temporary directory.
drush_mkdir includes/drush.inc Cross-platform compatible helper function to recursively create a directory tree.
drush_move_dir includes/drush.inc Move $src to $dest.
drush_preflight_backup_dir includes/drush.inc Decide where our backup directory should go
drush_prepare_backup_dir includes/drush.inc Prepare a backup directory
drush_register_file_for_deletion includes/drush.inc Any file passed in to this function will be deleted when drush exits.
drush_save_data_to_temp_file includes/drush.inc Save a string to a temporary file. Does not depend on Drupal's API. The temporary file will be automatically deleted when drush exits.
drush_tempdir includes/drush.inc Creates a temporary directory and return its path.
drush_tempnam includes/drush.inc Creates a temporary file, and registers it so that it will be deleted when drush exits. Whenever possible, drush_save_data_to_temp_file() should be used instead of this function.
_drush_delete_registered_files includes/drush.inc Delete all of the registered temporary files.
_drush_recursive_copy includes/drush.inc Internal function called by drush_copy_dir; do not use directly.

File

includes/drush.inc, line 1612
The drush API implementation and helpers.