diff --git a/omega_tools.module b/omega_tools.module index 0e10e85..3e3035d 100644 --- a/omega_tools.module +++ b/omega_tools.module @@ -267,9 +267,15 @@ function omega_tools_copy_recursive($source, $destination) { } $directory = dir($source); - + $ignore_paths = array( + '.', + '..', + '.git', + '.svn', + 'CVS', + ); while (FALSE !== ($read = $directory->read())) { - if ($read != '.' && $read != '..' ) { + if (!in_array($read, $ignore_paths)) { if (!omega_tools_copy_recursive($source . '/' . $read, $destination . '/' . $read)) { return FALSE; }