Move, Copy or Delete files with Drush
If you look at the drush file system helpers you see familiar needs met for making directories, moving (renaming) directories, deleting directories, and copying directories. However, there are no equivalent functions for moving (renaming) , or copying individual files. After a bit of experimentation, I have found that you can pass individual files to these functions and they will act on the file correctly:
- drush _delete_dir() -the documentation on this does clearly indicate that it works on files and directories.
Way to go Drush, this is awesome!