We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getAbsolutePath
1 parent 11f8306 commit 120544eCopy full SHA for 120544e
lib/private/Files/View.php
@@ -11,6 +11,7 @@
11
use OC\Files\Mount\MoveableMount;
12
use OC\Files\Storage\Storage;
13
use OC\Files\Storage\Wrapper\Quota;
14
+use OC\Files\Utils\PathHelper;
15
use OC\Share\Share;
16
use OC\User\LazyUser;
17
use OC\User\Manager as UserManager;
@@ -92,13 +93,7 @@ public function getAbsolutePath($path = '/'): ?string {
92
93
return null;
94
}
95
$this->assertPathLength($path);
- if ($path === '') {
96
- $path = '/';
97
- }
98
- if ($path[0] !== '/') {
99
- $path = '/' . $path;
100
101
- return $this->fakeRoot . $path;
+ return PathHelper::normalizePath($this->fakeRoot . '/' . $path);
102
103
104
/**
0 commit comments