diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-19 16:39:57 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:14:07 +0200 |
commit | 87b0021e5606888642b5798ba39b0525bf3f3e14 (patch) | |
tree | 2ccd1e719b7f83e6f70b015c370e41f5b0fd8ba4 /apps/files_sharing/ajax/external.php | |
parent | 30f5b2bd7cdb9dde211dd0d897f798190c8d3947 (diff) | |
download | nextcloud-server-87b0021e5606888642b5798ba39b0525bf3f3e14.tar.gz nextcloud-server-87b0021e5606888642b5798ba39b0525bf3f3e14.zip |
Scan the entire remote share at once by requesting the full file tree from the remote server
Diffstat (limited to 'apps/files_sharing/ajax/external.php')
-rw-r--r-- | apps/files_sharing/ajax/external.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php index e7bf903f705..c25b34ab552 100644 --- a/apps/files_sharing/ajax/external.php +++ b/apps/files_sharing/ajax/external.php @@ -23,6 +23,13 @@ $externalManager = new \OCA\Files_Sharing\External\Manager( ); $mount = $externalManager->addShare($remote, $token, $password, $name, $owner); -$result = $mount->getStorage()->file_exists(''); +/** + * @var \OCA\Files_Sharing\External\Storage $storage + */ +$storage = $mount->getStorage(); +$result = $storage->file_exists(''); +if($result){ + $storage->getScanner()->scanAll(); +} echo json_encode($result); |