lib/private/Encryption/Update.php
/**
	 * notify encryption module about added/removed users from a file/folder
	 *
	 * @param string $path relative to data/
	 * @throws Exceptions\ModuleDoesNotExistsException
	 */
notify encryption module about added/removed users from a file/folder
@param string $path relative to data
@throws Exceptions\ModuleDoesNotExistsException
notify encryption module about added / removed users from a file / folder @param string $path relative to data @throws Exceptions \ ModuleDoesNotExistsException
public function update($path) {
		if ($this->view->is_dir($path)) {
			$allFiles = $this->util->getAllFiles($path);
		} else {
			$allFiles = array($path);
		}
		$encryptionModule = $this->encryptionManager->getEncryptionModule();
		foreach ($allFiles as $file) {
			$usersSharing = $this->file->getAccessList($file);
			$encryptionModule->update($file, $this->uid, $usersSharing);
		}
	}
public function update ( $ path ) { if ( $ this -> view -> is_dir ( $ path ) ) { $ allFiles = $ this -> util -> getAllFiles ( $ path ) ; } else { $ allFiles = array ( $ path ) ; } $ encryptionModule = $ this -> encryptionManager -> getEncryptionModule ( ) ; foreach ( $ allFiles as $ file ) { $ usersSharing = $ this -> file -> getAccessList ( $ file ) ; $ encryptionModule -> update ( $ file , $ this -> uid , $ usersSharing ) ; } }
notify encryption module about added/removed users from a file/folder
 @param string $path relative to data
 @throws Exceptions\ModuleDoesNotExistsException
notify encryption module about added / removed users from a file / folder @param string $path relative to data @throws Exceptions \ ModuleDoesNotExistsException
// if a folder was shared, get a list of all (sub-)folders