Functions

Contains filters are case sensitive
Name Locationsort descending Description
drush_trim_path includes/filesystem.inc Remove the trailing DIRECTORY_SEPARATOR from a path. Will actually remove either / or \ on Windows.
drush_normalize_path includes/filesystem.inc Makes sure the path has only path separators native for the current operating system
drush_dir_md5 includes/filesystem.inc Calculates a single md5 hash for all files a directory (incuding subdirectories)
drush_delete_dir includes/filesystem.inc Deletes the specified file or directory and everything inside it.
drush_delete_dir_contents includes/filesystem.inc Deletes the contents of a directory.
drush_delete_tmp_dir includes/filesystem.inc Deletes the provided file or folder and everything inside it. This function explicitely tries to delete read-only files / folders.
drush_copy_dir includes/filesystem.inc Copy $src to $dest.
_drush_recursive_copy includes/filesystem.inc Internal function called by drush_copy_dir; do not use directly.
drush_move_dir includes/filesystem.inc Move $src to $dest.
drush_mkdir includes/filesystem.inc Cross-platform compatible helper function to recursively create a directory tree.
drush_save_data_to_temp_file includes/filesystem.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_find_tmp includes/filesystem.inc Returns the path to a temporary directory.
drush_tempnam includes/filesystem.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_tempdir includes/filesystem.inc Creates a temporary directory and return its path.
drush_register_file_for_deletion includes/filesystem.inc Any file passed in to this function will be deleted when drush exits.
_drush_delete_registered_files includes/filesystem.inc Delete all of the registered temporary files.
drush_preflight_backup_dir includes/filesystem.inc Decide where our backup directory should go
drush_prepare_backup_dir includes/filesystem.inc Prepare a backup directory
drush_file_not_empty includes/filesystem.inc Test to see if a file exists and is not empty
drush_scan_directory includes/filesystem.inc Finds all files that match a given mask in a given directory. Directories and files beginning with a period are excluded; this prevents hidden files and directories (such as SVN working directories and GIT repositories) from being scanned.
drush_file_append_data includes/filesystem.inc Simple helper function to append data to a given file.
drush_print includes/output.inc Prints a message with optional indentation. In general, drush_log($message, LogLevel::OK) is often a better choice than this function. That gets your confirmation message (for example) into the logs for this drush request. Consider that drush requests…
drush_print_prompt includes/output.inc Print a prompt -- that is, a message with no trailing newline.
drush_print_pipe includes/output.inc Stores a message which is printed during drush_shutdown() if in compact mode.
drush_print_r includes/output.inc Prints an array or string.
drush_print_format includes/output.inc Format some data and print it out. Respect --format option.
drush_format includes/output.inc Prepares a variable for printing. Loads the requested output formatter and uses it to process the provided input.
dt includes/output.inc Rudimentary replacement for Drupal API t() function.
drush_html_to_text includes/output.inc Convert html to readable text. Compatible API to drupal_html_to_text, but less functional. Caller might prefer to call drupal_html_to_text if there is a bootstrapped Drupal site available.
drush_print_table includes/output.inc Print a formatted table.
drush_format_table includes/output.inc Format a table of data.
_drush_format_table includes/output.inc
drush_key_value_to_array_table includes/output.inc Convert an associative array of key : value pairs into a table suitable for processing by drush_print_table.
drush_select_fields includes/output.inc Select the fields that should be used.
drush_select_output_fields includes/output.inc Select the fields from the input array that should be output.
drush_lookup_field_by_path includes/output.inc Return a specific item inside an array, as identified by the provided path.
drush_output_get_selected_field includes/output.inc Given a table array (an associative array of associative arrays), return an array of all of the values with the specified field name.
drush_hide_empty_fields includes/output.inc Hide any fields that are empty
drush_rows_of_key_value_to_array_table includes/output.inc Convert an array of data rows, where each row contains an associative array of key : value pairs, into a table suitable for processing by drush_print_table. The provided $header determines the order that the items will appear in the output. Only data…
drush_table_column_autowidth includes/output.inc Determine the best fit for column widths.
drush_print_file includes/output.inc Print the contents of a file.
drush_json_encode includes/output.inc Converts a PHP variable into its Javascript equivalent.
drush_json_decode includes/output.inc Converts an HTML-safe JSON string into its PHP equivalent.
drush_var_export includes/output.inc Drupal-friendly var_export(). Taken from utility.inc in Drupal 8.
find_legacy_dt_args includes/output.inc Return an array containing all of the items in the input array that begin with a '!'.
_drush_preflight_columns includes/preflight.inc
drush_symfony_input includes/preflight.inc
drush_init_application_global_options includes/preflight.inc
drush_init_annotation_commands includes/preflight.inc
drush_init_register_command_files includes/preflight.inc

Pages