apps/files_external/lib/Lib/Storage/Swift.php 1 location
|
@@ 86-96 (lines=11) @@
|
| 83 |
|
/** |
| 84 |
|
* @param string $path |
| 85 |
|
*/ |
| 86 |
|
private function normalizePath($path) { |
| 87 |
|
$path = \trim($path, '/'); |
| 88 |
|
|
| 89 |
|
if (!$path) { |
| 90 |
|
$path = '.'; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
$path = \str_replace('#', '%23', $path); |
| 94 |
|
|
| 95 |
|
return $path; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
const SUBCONTAINER_FILE = '.subcontainers'; |
| 99 |
|
|
lib/private/Files/ObjectStore/ObjectStoreStorage.php 1 location
|
@@ 555-566 (lines=12) @@
|
| 552 |
|
* @param string $path |
| 553 |
|
* @return string |
| 554 |
|
*/ |
| 555 |
|
private function normalizePath($path) { |
| 556 |
|
$path = \trim($path, '/'); |
| 557 |
|
//FIXME why do we sometimes get a path like 'files//username'? |
| 558 |
|
$path = \str_replace('//', '/', $path); |
| 559 |
|
|
| 560 |
|
// dirname('/folder') returns '.' but internally (in the cache) we store the root as '' |
| 561 |
|
if (!$path || $path === '.') { |
| 562 |
|
$path = ''; |
| 563 |
|
} |
| 564 |
|
|
| 565 |
|
return $path; |
| 566 |
|
} |
| 567 |
|
|
| 568 |
|
/** |
| 569 |
|
* Clear all object stat cache entries under this path |