@@ 180-189 (lines=10) @@ | ||
177 | return $result; |
|
178 | } |
|
179 | ||
180 | public static function getUidAndFilename($filename) { |
|
181 | $uid = \OC\Files\Filesystem::getOwner($filename); |
|
182 | \OC\Files\Filesystem::initMountPoints($uid); |
|
183 | if ( $uid != \OCP\User::getUser() ) { |
|
184 | $info = \OC\Files\Filesystem::getFileInfo($filename); |
|
185 | $ownerView = new \OC\Files\View('/'.$uid.'/files'); |
|
186 | $filename = $ownerView->getPath($info['fileid']); |
|
187 | } |
|
188 | return array($uid, $filename); |
|
189 | } |
|
190 | ||
191 | /** |
|
192 | * Format a path to be relative to the /user/files/ directory |
@@ 42-51 (lines=10) @@ | ||
39 | */ |
|
40 | private static $scannedVersions = false; |
|
41 | ||
42 | public static function getUidAndFilename($filename) { |
|
43 | $uid = \OC\Files\Filesystem::getOwner($filename); |
|
44 | \OC\Files\Filesystem::initMountPoints($uid); |
|
45 | if ($uid != \OCP\User::getUser()) { |
|
46 | $info = \OC\Files\Filesystem::getFileInfo($filename); |
|
47 | $ownerView = new \OC\Files\View('/' . $uid . '/files'); |
|
48 | $filename = $ownerView->getPath($info['fileid']); |
|
49 | } |
|
50 | return array($uid, $filename); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * get original location of files for user |
@@ 44-53 (lines=10) @@ | ||
41 | 6 => array('intervalEndsAfter' => -1, 'step' => 604800), |
|
42 | ); |
|
43 | ||
44 | public static function getUidAndFilename($filename) { |
|
45 | $uid = \OC\Files\Filesystem::getOwner($filename); |
|
46 | \OC\Files\Filesystem::initMountPoints($uid); |
|
47 | if ( $uid != \OCP\User::getUser() ) { |
|
48 | $info = \OC\Files\Filesystem::getFileInfo($filename); |
|
49 | $ownerView = new \OC\Files\View('/'.$uid.'/files'); |
|
50 | $filename = $ownerView->getPath($info['fileid']); |
|
51 | } |
|
52 | return array($uid, $filename); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Remember the owner and the owner path of the source file |