summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/View.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8054 from nextcloud/substr-use-indexMorris Jobke2018-01-261-3/+3
|\ | | | | Use index based string access for substr with length of 1
| * Use index based string access for substr with length of 1Morris Jobke2018-01-261-3/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-6/+3
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-6/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* handle not found mounts when cleaning avatarsRobin Appelman2017-12-111-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #7014 from nextcloud/rename-locksMorris Jobke2017-11-091-83/+86
|\ | | | | Unlock files even if an exception occurs while renaming
| * Unlock files even if an exception occurskorelstar2017-11-031-83/+86
| | | | | | | | Signed-off-by: Kristof Hamann <korelstar@users.noreply.github.com>
* | Update license headersMorris Jobke2017-11-061-2/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix seeking on object storageMorris Jobke2017-10-271-2/+22
|/ | | | | | Seeking is not needed if the $from is 0, because then the pointer is already at the correct position. Additionally another fallback is added, that if the fseek fails it just uses an fread to skip the beginning of the file until it is at the correct position. This skipping is done with a chunked fread. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't lock in the appdata_ directoryJoas Schilling2017-08-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Still throw a locked exception when the path is not relative to $user/files/Joas Schilling2017-08-101-5/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #5596 from nextcloud/mount-renameMorris Jobke2017-07-211-8/+12
|\ | | | | Fix renaming of non-renamble mounts
| * non movable mounts can not be movedRobin Appelman2017-07-171-8/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove unused functionsLukas Reschke2017-07-191-9/+0
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Run phan over code baseLukas Reschke2017-07-191-1/+1
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Revert "fix permissions of mountpoints - take 2"Morris Jobke2017-05-151-6/+2
|
* Merge pull request #4685 from nextcloud/fix_4683Morris Jobke2017-05-151-2/+6
|\ | | | | fix permissions of mountpoints - take 2
| * Revert "Revert "fix permissions of mountpoints""Roeland Jago Douma2017-05-041-2/+6
| | | | | | | | | | | | This reverts commit 70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Proper exception for upload of .htaccess file via WebDAVMorris Jobke2017-05-081-1/+5
|/ | | | | | * fixes #2860 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Revert "fix permissions of mountpoints"Morris Jobke2017-05-041-6/+2
|
* fix permissions of mountpointsRobin Appelman2017-05-011-2/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Moved unit tests from ObjectTree::move to DirectoryVincent Petry2017-04-261-1/+1
|
* Remove unused use statementsMorris Jobke2017-04-221-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* round the mtime in touchRobin Appelman2017-03-271-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move error message to log entryLukas Reschke2017-03-201-1/+12
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix malformed logging in exceptionkdslkdsaldsal2017-03-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Redirect unlink to rmdir (#27101)Vincent Petry2017-03-161-1/+5
| | | | | | | Many API callers will call unlink even for directories and it can mess up with some wrappers like the encryption wrapper Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Prevent PHP request to get killed when using fclose callback (#26775)Vincent Petry2017-01-231-0/+2
| | | | | | | | * Prevent PHP request to get killed when using fclose callback * Add ignore_user_abort everywhere where the time limit is set to 0 Signed-off-by: Robin Appelman <robin@icewind.nl>
* log a warning when trying to use a non basic fopen modeRobin Appelman2017-01-051-14/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only update the cache if the storage operation succeedsRobin Appelman2016-12-021-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Prevent endless loop in \OC\Files\View::createParentDirectoriesLukas Reschke2016-12-011-5/+10
| | | | | | | | \OC\Files\View::createParentDirectories was previously prone to an endless loop. If a path such as /foo/existingfile.txt/bar/foo was passed and existingfile.txt existed in foo the loop was never left and running until the PHP process timed out. This commit changes the logic to a foreach loop over an array and additionally additional error handling using is_file. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move the validation into one place onlyJoas Schilling2016-11-211-26/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* close the file handle after readfileRobin Appelman2016-11-181-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only query substorages to calculate the final mtime/size/etag lazilyRobin Appelman2016-11-101-11/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #1820 from nextcloud/4byte-filenamesRoeland Jago Douma2016-10-241-3/+5
|\ | | | | Allow 4byte unicode filenames on supported platforms
| * Allow 4byte unicode filenames on supported platformsRobin Appelman2016-10-201-3/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-1/+1
|/
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+5
|
* fix swift primary object store test (#25281)Thomas Müller2016-07-051-1/+1
| | | | | | | | | | | | | * Wait for socket to be open * Fix call on null * Allow DB access for MountProviderTest Makes unit tests pass when using object store, since their FS access is actually oc_filecache DB access. It is currently not possible to mock or bypass the logic from "SharedMount::verifyMountPoint()" triggered by this test.
* Fire hooks for mkdir for folder uploadkarakayasemi2016-06-211-1/+22
| | | | | | fromTmpFile function, usual mkdir call is only working for file's parent directory. Does not care upper parent folders. I added a recursive function that creates parent non-existing folders with usual mkdir.
* return success when deleting ghost filesRobin Appelman2016-06-031-1/+3
|
* allow deleting "ghost files" trough the View and Node apiRobin Appelman2016-06-031-15/+28
|
* Update license headersLukas Reschke2016-05-261-3/+6
|
* Code style and doc fixPiotr Filiciak2016-05-231-4/+4
|
* Http Range requests support in downloadsPiotr Filiciak2016-05-201-0/+34
| | | | Http range requests support is required for video preview
* Merge branch 'patch-1' of https://github.com/weits/core into weits-patch-1Thomas Müller2016-04-251-1/+1
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+2058