| @@ 1188-1190 (lines=3) @@ | ||
| 1185 | // create unique name for directory |
|
| 1186 | $src = $dir; |
|
| 1187 | $name = basename($path); |
|
| 1188 | if (preg_match('/\.((tar\.(gz|bz|bz2|z|lzo))|cpio\.gz|ps\.gz|xcf\.(gz|bz2)|[a-z0-9]{1,4})$/i', $name, $m)) { |
|
| 1189 | $name = substr($name, 0, strlen($name)-strlen($m[0])); |
|
| 1190 | } |
|
| 1191 | $test = $this->_joinPath(dirname($path), $name); |
|
| 1192 | if ($this->stat($test)) { |
|
| 1193 | $name = $this->uniqueName(dirname($path), $name, '-', false); |
|
| @@ 993-995 (lines=3) @@ | ||
| 990 | // create unique name for directory |
|
| 991 | $src = $dir; |
|
| 992 | $name = basename($path); |
|
| 993 | if (preg_match('/\.((tar\.(gz|bz|bz2|z|lzo))|cpio\.gz|ps\.gz|xcf\.(gz|bz2)|[a-z0-9]{1,4})$/i', $name, $m)) { |
|
| 994 | $name = substr($name, 0, strlen($name)-strlen($m[0])); |
|
| 995 | } |
|
| 996 | $test = dirname($path).DIRECTORY_SEPARATOR.$name; |
|
| 997 | if (file_exists($test) || is_link($test)) { |
|
| 998 | $name = $this->uniqueName(dirname($path), $name, '-', false); |
|