NoopScanner

class OC\Files\ObjectStore\NoopScanner
Source:lib/private/Files/ObjectStore/NoopScanner.php#33
Parent:OC\Files\Cache\Scanner

Methods

public OC\Files\ObjectStore\NoopScanner::__construct($storage)
Source:lib/private/Files/ObjectStore/NoopScanner.php#34
public OC\Files\ObjectStore\NoopScanner::scanFile($file, $reuseExisting=0, $parentId=-1, $cacheData=null, $lock=true, $data=null)
scan a single file and store it in the cache
Source:

lib/private/Files/ObjectStore/NoopScanner.php#47

Parameters:
  • $file (string)
  • $reuseExisting (int)
  • $parentId (int)
  • $cacheData (array | null) existing data in the cache for the file to be scanned
Returns:

array an array of metadata of the scanned file

public OC\Files\ObjectStore\NoopScanner::scan($path, $recursive=self::SCAN_RECURSIVE, $reuse=-1, $lock=true)
scan a folder and all it’s children
Source:

lib/private/Files/ObjectStore/NoopScanner.php#59

Parameters:
  • $path (string)
  • $recursive (bool)
  • $reuse (int)
Returns:

array with the meta data of the scanned file or folder

protected OC\Files\ObjectStore\NoopScanner::scanChildren($path, $recursive=self::SCAN_RECURSIVE, $reuse=-1, $folderId=null, $lock=true)
scan all the files and folders in a folder
Source:

lib/private/Files/ObjectStore/NoopScanner.php#72

Parameters:
  • $path (string)
  • $recursive (bool)
  • $reuse (int)
Returns:

int the size of the scanned folder or -1 if the size is unknown at this stage

public OC\Files\ObjectStore\NoopScanner::backgroundScan()
walk over any folders that are not fully scanned yet and scan them
Source:lib/private/Files/ObjectStore/NoopScanner.php#79