summaryrefslogtreecommitdiffstats
path: root/files/ajax/scan.php
diff options
context:
space:
mode:
Diffstat (limited to 'files/ajax/scan.php')
-rw-r--r--files/ajax/scan.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/ajax/scan.php b/files/ajax/scan.php
index db09b7d5c64..c60e34b5176 100644
--- a/files/ajax/scan.php
+++ b/files/ajax/scan.php
@@ -5,6 +5,7 @@ require_once '../../lib/base.php';
set_time_limit(0);//scanning can take ages
$force=isset($_GET['force']) and $_GET['force']=='true';
+$dir=isset($_GET['dir'])?$_GET['dir']:'';
$checkOnly=isset($_GET['checkonly']) and $_GET['checkonly']=='true';
if(!$checkOnly){
@@ -16,7 +17,7 @@ if(!$checkOnly){
if($force or !OC_FileCache::inCache('')){
if(!$checkOnly){
OC_DB::beginTransaction();
- OC_FileCache::scan('',$eventSource);
+ OC_FileCache::scan($dir,$eventSource);
OC_FileCache::clean();
OC_DB::commit();
$eventSource->send('success',true);