Esempio n. 1
0
 /**
  * @return void
  */
 public function processChangesInStorages()
 {
     // get all file-identifiers from the storage
     $availableFiles = $this->storage->getFileIdentifiersInFolder($this->storage->getRootLevelFolder()->getIdentifier(), TRUE, TRUE);
     $this->detectChangedFilesInStorage($availableFiles);
     $this->processChangedAndNewFiles();
     $this->detectMissingFiles();
 }
Esempio n. 2
0
 /**
  * Returns amount of all files within this folder, optionally filtered by
  * the given pattern
  *
  * @param array $filterMethods
  * @param boolean $recursive
  *
  * @return integer
  */
 public function getFileCount(array $filterMethods = array(), $recursive = FALSE)
 {
     return count($this->storage->getFileIdentifiersInFolder($this->identifier, TRUE, $recursive));
 }