Skip to content

Instantly share code, notes, and snippets.

@bubba-h57
bubba-h57 / RecursiveMoveExample.php
Last active March 7, 2019 05:38
Recursively move a directory with Native PHP Function calls and allow exclusions.
<?php
$exclusions = array('/\.gitignore/',
'/.*\.svn.*/',
'/.*\.bak.*/',
'/backups/',
'/readme.txt/',
'/generic/',
'/orig.css/'
);