Robin Appelman
b54dcd1999
Cache: fix scanner trying to use existing data when file isn't in cache
2013-02-12 16:48:21 +01:00
Thomas Mueller
f2baf1ae0e
fixing syntax error
2013-02-12 16:18:48 +01:00
Robin Appelman
e1fe5279dd
Cache: also preserve etags for files
2013-02-12 14:56:57 +01:00
irgsmirx
062befd1fc
Update lib/files/cache/legacy.php
...
Fixing a bug that occurs when trying to update a non-existent 'fscache' table in the database - if unfixed upgrading does not succeed.
Unfortunately I could not get a call to PEAR::isError working. That is why I check for the existence of a property present in class MDB2_Error.
2013-02-11 20:28:36 +01:00
Robin Appelman
2921d2fb78
Cache: don't create a new etag when the mtime hasn't changed
2013-02-11 13:33:56 +01:00
Robin Appelman
d84c3cd014
Cache: actually use parameter
2013-02-11 13:33:48 +01:00
Robin Appelman
299649b40e
Cache: reuse known folder sizes when doing a shallow scan
2013-02-11 13:33:41 +01:00
Robin Appelman
56d10e9054
Cache: simplify scanner logic a bit when handeling with unknown folder sizes
2013-02-11 13:33:34 +01:00
Jörn Friedrich Dreyer
1263511a17
append .part to put files
2013-02-10 14:16:45 +01:00
Jörn Friedrich Dreyer
420b63cbe4
fix empty path handling
2013-02-09 16:58:55 +01:00
TheSFReader
d03155a8d5
translate the mimtype/mimepart to readable in the searchByMime function
2013-02-03 11:06:26 +01:00
TheSFReader
42d59d5a16
Remove a warning by making sure the renamed file is a dir before trying and opening it
2013-02-02 23:18:29 +01:00
Robin Appelman
af3b0e30ed
Cache: don't insert duplicated during upgrade
2013-01-30 19:19:19 +01:00
Robin Appelman
9e2a066c7b
Cache: add function to get storage id and internal path of a file by id
2013-01-27 00:13:50 +01:00
Robin Appelman
42a1a17a30
Cache: return non numberic storage id
2013-01-21 22:01:22 +01:00
Michael Gapczynski
664f33a29c
Update mtimes of all parent folders after change inside
2013-01-19 21:04:25 -05:00
Robin Appelman
6871a150bd
Cache: use a database transition for scanning each folder
...
gives a massive speed improvement while scanning files
2013-01-16 21:58:17 +01:00
Robin Appelman
29ec007979
Cache: dont migrate permissions, cache them on demain instead
2013-01-16 19:11:33 +01:00
Robin Appelman
7debfac0dc
Cache: more efficient upgrading
2013-01-15 19:11:12 +01:00
Robin Appelman
94068e5d08
Cache: show upgrade progress
2013-01-15 18:13:50 +01:00
Michael Gapczynski
6801f82d09
Merge branch 'filesystem' into filesystem-etags
...
Conflicts:
lib/files/cache/cache.php
2013-01-07 10:28:37 -05:00
Robin Appelman
d0377b1951
Cache: normalize mimetypes
2013-01-07 02:09:21 +01:00
Robin Appelman
439578288f
Cache: split permission cache scanning and cache scanning
2013-01-07 01:03:11 +01:00
Robin Appelman
a164fd160f
Cache: provide path hints to getCache/etc where available
2013-01-01 20:20:20 +01:00
Michael Gapczynski
d0a50fae83
Fix eTagUpdate and add tests
2012-12-31 18:16:44 -05:00
Michael Gapczynski
aea8b0ff5c
Merge branch 'filesystem' into filesystem-etags
...
Conflicts:
lib/files/cache/updater.php
2012-12-30 21:26:48 -05:00
Michael Gapczynski
96e08a1d96
Fix function name
2012-12-30 21:23:17 -05:00
Michael Gapczynski
3ee3323b87
Fix retrieving of cache and scanner in Updater class
2012-12-30 20:27:38 -05:00
Michael Gapczynski
77f12c526b
Update etags in parent folders
2012-12-30 19:54:51 -05:00
Michael Gapczynski
2c23e143d3
Store etags in the file cache
2012-12-30 16:32:55 -05:00
Robin Appelman
b12abb2c94
use numeric ids for storages in the filecache
2012-12-15 23:35:07 +01:00
Robin Appelman
4be039e6cb
Filecache Watcher: use scan or scanFile based on the current item, not the cached item
2012-12-15 03:10:56 +01:00
Robin Appelman
bc52f12162
dont insert and entry in the filecache during upgrade if the id already exists in the filecache
...
most likely the result from an incompelte upgrade
2012-12-15 02:29:34 +01:00
Robin Appelman
317cd4c70a
catch error if old filecache table is not present during upgrade
2012-12-06 17:49:35 +01:00
Robin Appelman
01eb5d2790
fix some edge cases while scanning the root of a storage
2012-12-02 03:43:51 +01:00
Robin Appelman
702444b242
fail gracefully when no old filecache is present during upgrade
2012-12-01 00:59:49 +01:00
Robin Appelman
dbbb357f62
add upgrade path from old cache to preserve file id's
2012-11-30 01:41:30 +01:00
Robin Appelman
a609992a75
better check if we are passing a fileid to Cache::get
2012-11-25 16:30:57 +01:00
Robin Appelman
0cfef83ed9
sort output of getFolderContent by name
2012-11-25 16:08:35 +01:00
Michael Gapczynski
cc5d8e5609
Check if data variable in scanner isn't null before using it
2012-11-24 20:29:57 -05:00
Robin Appelman
ad706229f5
explicitly sort files when using getFolderContents
2012-11-23 00:17:18 +01:00
Robin Appelman
8687e0d346
add Scanner->backgroundScan
2012-11-22 12:45:29 +01:00
Robin Appelman
186c9e77e8
add Cache->getIncomplete for use in background scanning
2012-11-22 12:45:29 +01:00
Robin Appelman
e6cf082fe0
emit a hooks during the filesystem scan
2012-11-22 12:45:29 +01:00
Robin Appelman
40fae0acbf
fix outdated permissions cache use in scanner
2012-11-18 14:10:28 +01:00
Robin Appelman
cbcd9ba84a
allow storage backends to implement custom permission management
2012-11-15 00:57:30 +01:00
Robin Appelman
fedff3eafe
add cache updater
2012-11-08 21:12:40 +01:00
Robin Appelman
5a173b901f
fix Scanner->scan setting the filesize to 0 for files
2012-11-08 20:47:40 +01:00
Robin Appelman
15b8a3f987
move correctFolderSize from Scanner to Cache
2012-11-08 18:10:54 +01:00
Robin Appelman
3f644fe70c
fix calculateFolderSize for non existing files
2012-11-08 18:07:30 +01:00
Robin Appelman
e7bed5ddab
allow creating Cache objects with only the storage id instead of the whole storage object
2012-11-08 17:59:08 +01:00
Robin Appelman
8a6bb7965d
add Cache::move
2012-11-02 22:25:33 +01:00
Robin Appelman
fba7be1194
add filesystem watcher to detect updates
2012-10-28 11:39:37 +01:00
Robin Appelman
79d0ac21cc
delete child entries when a folder gets removed from cache
2012-10-27 18:08:00 +02:00
Robin Appelman
56e9ce44c3
add a way to recalucale the size of a folder in the cache
2012-10-27 18:08:00 +02:00
Robin Appelman
5bfff6c56e
use absolute paths when resolving mount points
2012-10-27 12:17:35 +02:00
Robin Appelman
fcc92a9f43
add searchByMime to new cache api
2012-10-27 10:34:25 +02:00
Robin Appelman
695405dfeb
add permissions data to the results of the cache api
2012-10-27 10:01:20 +02:00
Robin Appelman
c22a723785
add file permissions cache
2012-10-26 19:07:29 +02:00
Robin Appelman
8bce661e4d
add search to the filecache api
2012-10-26 13:23:49 +02:00
Robin Appelman
39adadd3e3
move the cache api from OC_Files to filesystem(view)
2012-10-26 12:30:25 +02:00
Robin Appelman
13515effc9
add Cache::getStatus
2012-10-08 14:58:21 +02:00
Robin Appelman
b9b9fd9dba
more tests and fixes for the filesystem scanner
2012-10-03 13:07:19 +02:00
Robin Appelman
85be00be65
add some more test cases for the scanner
2012-10-03 11:40:09 +02:00
Robin Appelman
e415e90c6d
make filestorage scanner non-static and add a simple test case
2012-10-03 11:24:49 +02:00
Robin Appelman
636c75ce06
better parent path bahaviour for the filecache
2012-10-03 11:23:33 +02:00
Robin Appelman
92555eff71
add encrypted column to the new filecache
2012-10-02 23:34:45 +02:00
Robin Appelman
522d7df860
convert Cache to a non-static class that handles the cache for a single storage backend
2012-09-26 17:52:02 +02:00
Robin Appelman
dcf995fff3
add Cache::getFolderContent
2012-09-23 15:25:03 +02:00
Robin Appelman
6fafd5d4e9
this should be done elsewhere if needed
2012-09-23 01:46:52 +02:00
Robin Appelman
97b0eabc85
fix several problems in the new filecache in order to complete the tests
2012-09-22 15:43:48 +02:00
Robin Appelman
153cd802a9
add partial file data to the result of Cache::get
2012-09-22 14:40:04 +02:00
Robin Appelman
954596c251
rework filecache to work directly on storage backends wip
2012-09-16 16:52:32 +02:00