| @@ 1183-1185 (lines=3) @@ | ||
| 1180 | // create unique name for directory |
|
| 1181 | $src = $dir; |
|
| 1182 | $name = basename($path); |
|
| 1183 | if (preg_match('/\.((tar\.(gz|bz|bz2|z|lzo))|cpio\.gz|ps\.gz|xcf\.(gz|bz2)|[a-z0-9]{1,4})$/i', $name, $m)) { |
|
| 1184 | $name = substr($name, 0, strlen($name)-strlen($m[0])); |
|
| 1185 | } |
|
| 1186 | $test = $this->_joinPath(dirname($path), $name); |
|
| 1187 | if ($this->stat($test)) { |
|
| 1188 | $name = $this->uniqueName(dirname($path), $name, '-', false); |
|
| @@ 928-930 (lines=3) @@ | ||
| 925 | // create unique name for directory |
|
| 926 | $src = $dir; |
|
| 927 | $name = basename($path); |
|
| 928 | if (preg_match('/\.((tar\.(gz|bz|bz2|z|lzo))|cpio\.gz|ps\.gz|xcf\.(gz|bz2)|[a-z0-9]{1,4})$/i', $name, $m)) { |
|
| 929 | $name = substr($name, 0, strlen($name)-strlen($m[0])); |
|
| 930 | } |
|
| 931 | $test = dirname($path).DIRECTORY_SEPARATOR.$name; |
|
| 932 | if (file_exists($test) || is_link($test)) { |
|
| 933 | $name = $this->uniqueName(dirname($path), $name, '-', false); |
|