Morris Jobke
a661f043e1
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
2a38605545
Properly log the full exception instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
8a41d05761
Remove deprecated \OCP\Config
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Robin Appelman
804d97d6ff
unlock file when an exception occurs during scanning
Signed-off-by: Robin Appelman <robin@icewind.nl>
8 years ago
Morris Jobke
c27498db71
Use IConfig instead of static OCP\Config
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Robin Appelman
1f1e1b0d00
use unmasked permissions during scanning
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Morris Jobke
c54a59d51e
Remove unused use statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Robin Appelman
f27113a6ee
also apply permissions mask in getMetaData
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
2520a4831b
Make sure we use the correct storage id when scanning a jailed storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Joas Schilling
558f169671
Move the validation into one place only
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
4652d203e3
Make sure we don't scan files that can not be accessed
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
0215b004da
Update with robin
9 years ago
Joas Schilling
ba87db3fcc
Fix others
9 years ago
blizzz
51fd2602a7
Revert "Downstream 2016-06-08"
10 years ago
Robin Appelman
ea6921da3b
Ignore forbidden files while scanning
10 years ago
Robin Appelman
73547f29be
Ignore forbidden files while scanning
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Robin Appelman
eca57be336
Only recurse into incomplete folders during background scans
10 years ago
Robin Appelman
f3979e5459
dont needlessly triger the propgator in the scanner
10 years ago
Vincent Petry
f8b2b95408
Scanner must normalize new children names for cache diff
Since new children from the storage might contain NFD entries, these
must be normalized to NFC to be properly diff'ed with the cache
contents which is always NFC.
This fixes an issue where NFD entries would disappear from the cache
after rescannng for children.
10 years ago
Robin Appelman
a3623745d5
Free up folder content from memory before recursing in the file scanner
10 years ago
Robin Appelman
4ac16001e0
add locks in the scanner to prevent multiple scanners running on the same files
10 years ago
Roeland Jago Douma
dedf392751
Move \OC\Files to PSR-4
10 years ago
Robin Appelman
5762a68c97
dont do optimized size propagation for encrypted files
10 years ago
Roeland Jago Douma
0dbcbc4cae
When the scanner detects a file is changed clear checksum
Fixes #23782 and #23783
If the file scanner detects a changed file we clear the checksum while
we update the cache.
* Unit test added
10 years ago
Daniel Jagszent
5a0938ad8e
Call private cache methods only for `OC\Files\Cache\Cache`
The two implementation detail methods `correctFolderSize` and
`calculateFolderSize` should only be called for instances of
`OC\Files\Cache\Cache`. This commit adds guarding checks
whenever they are called.
10 years ago
Robin Appelman
6485d95c5a
handle completely unscanned storages in the background scanner
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Robin Appelman
8c700cc99d
fix size propagation for new files
10 years ago
Robin Appelman
ddbbe1742f
propagate folder size in the same query for write updates
10 years ago
Robin Appelman
bdf51d9ea4
only trigger locking on lockingstorages
10 years ago
Robin Appelman
5fae07f422
add scanner interface
10 years ago
Robin Appelman
6d321f5f6b
Return a class from cache operations instead of an array
10 years ago
Martin
06ca5cbade
Fix: emit 'scanFiles' will only fire on files and not on folders (II)
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Morris Jobke
0a41cfefe3
Remove beginTransaction, commit, rollback from OC_DB
10 years ago
Joas Schilling
e2cfcd992c
Allow storage wrappers to through a forbidden exception with retry information
10 years ago
Lukas Reschke
8f09d5b67c
Update license headers
10 years ago
Bjoern Schiessle
8185eaa6dd
also detect files in a .part folder as part file
10 years ago
Morris Jobke
8366ce2767
deduplicate @xenopathic
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Olivier Paroz
9ea05c898e
Always send a postScanFile event when done scanning a file
postScanFile is important when scanning external storage as it indicates when the file is ready to be used
10 years ago
Robin McCorkell
188d0e09b8
Add reset method to mimetype loader
Used to solve concurrency issues
10 years ago
Vincent Petry
fe575feca8
Prevent scanner going crazy with unavailable storages
10 years ago
Thomas Müller
d3ac73c0c9
Remove OC_Log
10 years ago
Vincent Petry
8859004a2b
Rollback folder scan if an entry was locked
10 years ago
Robin Appelman
3e54696f7f
extends phpdoc
11 years ago
Robin Appelman
3526b352dc
update the file cache within the write lock
11 years ago
Robin Appelman
7d72f7d8ce
keep a read lock while scanning a file or folder
11 years ago