clone.php 1 location
|
@@ 71-73 (lines=3) @@
|
| 68 |
|
if (is_dir($path)) { |
| 69 |
|
// create new dir |
| 70 |
|
// mkdir($newPath); |
| 71 |
|
if (!@mkdir($newPath) && !is_dir($newPath)) { |
| 72 |
|
throw Exception("Couldn't create this directory: " . $newPath); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
// check all files in dir, and process it |
| 76 |
|
if ($handle = opendir($path)) { |
include/functions.php 1 location
|
@@ 140-145 (lines=6) @@
|
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
// Make destination directory |
| 140 |
|
if (!is_dir($dest)) { |
| 141 |
|
// mkdir($dest); |
| 142 |
|
if (!@mkdir($dest) && !is_dir($dest)) { |
| 143 |
|
throw Exception("Couldn't create this directory: " . $dest); |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
// Loop through the folder |
| 148 |
|
$dir = dir($source); |