Filesystem convenience functions.

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


Namesort descending Location Description
drush_copy_dir includes/ Copy $src to $dest.
drush_delete_dir includes/ Deletes the provided file or folder and everything inside it.
drush_find_tmp includes/ Returns the path to a temporary directory.
drush_mkdir includes/ Cross-platform compatible helper function to recursively create a directory tree.
drush_move_dir includes/ Move $src to $dest.
drush_preflight_backup_dir includes/ Decide where our backup directory should go
drush_prepare_backup_dir includes/ Prepare a backup directory
drush_register_file_for_deletion includes/ Any file passed in to this function will be deleted when drush exits.
drush_save_data_to_temp_file includes/ 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/ Creates a temporary directory and return its path.
drush_tempnam includes/ 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/ Delete all of the registered temporary files.
_drush_recursive_copy includes/ Internal function called by drush_copy_dir; do not use directly.


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