summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6962 from owncloud/quota-space-rootThomas Müller2014-02-201-3/+22
|\ | | | | Allow passing a root folder to get the used space from in the quota wrapper
| * Add unit test for quote wrapper size rootRobin Appelman2014-02-041-3/+22
| |
* | Fixed ext storage webdav path encodingVincent Petry2014-02-191-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | - Some WebDAV servers like lighttpd need paths in URLs to be properly encoded - Added error log output when curl connection failed - Added check for 'resourcetype' in case the WebDAV server doesn't support/return it - Fixed touch() to return false if the server doesn't implement PROPPATCH - Added optional delay in WebDAV unit tests to use when testing against lighttpd's WebDAV
* | Merge pull request #7274 from owncloud/scrutinizer-patch-1Morris Jobke2014-02-197-4/+18
|\ \ | | | | | | Scrutinizer Auto-Fixes
| * | Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-197-4/+18
| |/ | | | | | | | | | | | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
* | add unit tests for watcher policiesRobin Appelman2014-02-191-1/+55
| |
* | Allow setting the frequency of which the file watcher checks for updatesRobin Appelman2014-02-181-0/+3
|/
* Fixed quota wrapper to not wrap failed fopen streamsVincent Petry2014-01-191-0/+19
| | | | | | | | | | | | When calling fopen() on some storage types, these return false instead of throwing an exception. This fix makes sure that in case the stream wasn't opened (for example when a file doesn't exist any more) the stream isn't wrapped. Also added 'rb' as another case that doesn't need to be wrapped. Fixes #6832
* Fix array access syntax for older PHPVincent Petry2014-01-171-2/+3
| | | | There was a syntax error when running tests in PHP 5.3.10.
* Merge pull request #6768 from owncloud/scanner-use-storage-mtimeVincent Petry2014-01-153-2/+19
|\ | | | | Use storage_mtime when determining if we can reuse cached data while scanning
| * update another testRobin Appelman2014-01-141-1/+1
| |
| * use different value for mtime and storage_mtime in testRobin Appelman2014-01-141-1/+1
| |
| * remove duplicate test classRobin Appelman2014-01-142-23/+17
| |
| * Use storage_mtime when determining if we can reuse cached data while scanningRobin Appelman2014-01-142-1/+24
| |
* | Fix calculated folder size to use unencrypted sizeVincent Petry2014-01-091-0/+45
|/ | | | | | The encrypted size was used when calculating folder sizes. This fix now also sums up the unencrypted size and shows that one when available.
* Prevent deleting storage rootVincent Petry2014-01-081-0/+42
| | | | | | | | Storage mount points are not deletable, so make sure that the unlink operation and its hooks aren't run in such cases. Note that some storages might recursively delete their contents when calling unlink on their root. This fix prevents that as well.
* Now also preventing to override "files" dir size with -1Vincent Petry2014-01-071-6/+12
| | | | Fixes #6526
* remove unneeded ; in commentRobin Appelman2013-12-121-1/+1
|
* Add test for having utf8 filenames in the cacheRobin Appelman2013-12-121-1/+31
|
* get rid of failing test that don't cause additional downloadsRobin Appelman2013-12-062-25/+25
|
* extend test case for etag preservationRobin Appelman2013-12-061-2/+2
|
* reuse etags when doing a background scanRobin Appelman2013-12-051-0/+79
|
* Added unit test for the test() methodVincent Petry2013-12-031-0/+7
| | | | This is to make sure that method isn't broken
* Fixed FTP and SMB to use rmdir() when deleting foldersVincent Petry2013-11-291-1/+13
| | | | | | | | | | | Some storages need to use different calls for deleting files or folders, usually unlink() and rmdir(). Fixes #4532 (SMB dir deletion) Fixes #5941 (FTP dir deletion) Note that the extra is_dir() should be fast because it's read from the stat cache.
* Redetect mime type whenever extension is renamedVincent Petry2013-11-271-0/+8
|
* Merge pull request #6008 from owncloud/extstorage-smb-webdav-renamefixVincent Petry2013-11-261-1/+9
|\ | | | | Fixed SMB rename function to overwrite target file
| * Improved unit test for "overwrite on move"Vincent Petry2013-11-251-3/+5
| | | | | | | | Now using a different content to make sure the file was overwritten.
| * Added unit test for "overwrite file on rename/move"Vincent Petry2013-11-251-0/+6
| | | | | | | | | | Also fixed "rename" unit test that was ready the result out of the wrong file.
* | Updated unit tests for SMBVincent Petry2013-11-261-1/+2
|/ | | | | - coverage for touch return value - fixed directory provider to exclude unsupported cases
* Fixed SMB file deletion success detectionVincent Petry2013-11-191-2/+14
| | | | | | | Since unlink() smb4php doesn't return true on deletion success, we need to check whether the file was deleted to confirm success. Fixes #5866
* Merge pull request #5927 from owncloud/quota-excludeextstorageMorris Jobke2013-11-181-0/+5
|\ | | | | External storage space is now not counted in total space
| * External storage space is now not counted in total spaceVincent Petry2013-11-181-0/+5
| | | | | | | | | | | | | | Added argument to getFileInfo() to disable adding the size of mountpoints to a directory's size. Fixes #5924
* | Root size for home storage is now size of "files" subdirVincent Petry2013-11-181-0/+26
|/ | | | Fixes #4593
* Added missing test with leading backslashVincent Petry2013-11-141-0/+2
|
* Fixed normalizePath() to strip out single dot dirsVincent Petry2013-11-141-1/+54
| | | | Now removing "/./" and trailing "/." from the paths when normalizing.
* Now using HomeStorage for legacy home storage idsVincent Petry2013-11-122-2/+91
| | | | | Legacy home storage ids with the format "local://path/to/datadir/user1" are now also wrapped by the HomeStorage.
* Do not use -1 as the size for the root folder of the home storageRobin Appelman2013-11-122-14/+136
|
* Fixed filesize issue in watchr testVincent Petry2013-11-051-0/+3
| | | | | | | Added clearstatcache to make sure we get the correct file size after re-writing into the same file. This failed on openSUSE 12.3 x86_64
* Merge pull request #5652 from owncloud/front-port-5647-masterThomas Müller2013-11-011-15/+26
|\ | | | | [WIP] extend unit test to directories starting or ending in whitespace
| * extend unit test to directories starting or ending in whitespaceJörn Friedrich Dreyer2013-10-311-15/+26
| |
* | Merge branch 'master' into home-storageThomas Müller2013-10-301-2/+50
|\|
| * Merge branch 'master' into update-parent-storage-mtimeRobin Appelman2013-10-301-0/+18
| |\ | | | | | | | | | | | | Conflicts: lib/private/files/cache/updater.php
| | * backport of https://github.com/owncloud/core/pull/5513Bjoern Schiessle2013-10-291-0/+18
| | |
| * | update touch tests for updated behaviourRobin Appelman2013-10-291-2/+0
| | |
| * | Update the parent folders storage_mtime on write and delete to prevent rescansRobin Appelman2013-10-291-0/+32
| |/
* / add specialized storage backend for home foldersRobin Appelman2013-10-291-0/+71
|/
* Fixed quota stream to not wrap read-only fopen callsVincent Petry2013-10-251-0/+22
|
* Fixed quota stream's fseek methodVincent Petry2013-10-251-0/+72
| | | | | | - Added missing return statement - Added missing support for SEEK_END - Fixes #5524
* Merge pull request #5263 from owncloud/fixing-5255-masterVicDeo2013-10-101-0/+34
|\ | | | | Proper behavior of resolvePath()
| * the path need to be normalized before putting it into resolvePath()Thomas Müller2013-10-101-0/+34
| | | | | | | | otherwise the returned internalPath will not match followup calls to e.g. Cache::getID()