diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-05-10 12:00:13 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-05-10 12:00:13 +0200 |
commit | c3b0d3d38cb2cfe1501a28081dde34dbec2d2621 (patch) | |
tree | ea17e6535ed31bcd91ba704406c097076ebf973b /lib/files/cache/scanner.php | |
parent | c112ac440822c354818e3b904194c957b580b608 (diff) | |
download | nextcloud-server-c3b0d3d38cb2cfe1501a28081dde34dbec2d2621.tar.gz nextcloud-server-c3b0d3d38cb2cfe1501a28081dde34dbec2d2621.zip |
rename isIgnoredFile to isPartialFile, remove check of blacklisted files in isPartialFile, correct usage of isPartialFile and isFileBlacklisted
Diffstat (limited to 'lib/files/cache/scanner.php')
-rw-r--r-- | lib/files/cache/scanner.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index 5241acec1ee..661bc486330 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -62,7 +62,9 @@ class Scanner { * @return array with metadata of the scanned file */ public function scanFile($file, $checkExisting = false) { - if (!self::isIgnoredFile($file)) { + if ( ! self::isPartialFile($file) + and ! \OC\Files\Filesystem::isFileBlacklisted($file) + ) { \OC_Hook::emit('\OC\Files\Cache\Scanner', 'scan_file', array('path' => $file, 'storage' => $this->storageId)); $data = $this->getData($file); if ($data) { @@ -166,10 +168,8 @@ class Scanner { * @param String $file * @return boolean */ - public static function isIgnoredFile($file) { - if (pathinfo($file, PATHINFO_EXTENSION) === 'part' - || \OC\Files\Filesystem::isFileBlacklisted($file) - ) { + public static function isPartialFile($file) { + if (pathinfo($file, PATHINFO_EXTENSION) === 'part') { return true; } return false; |