summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/trashbin.php
Commit message (Collapse)AuthorAgeFilesLines
* Move files_trashbin to PSR-4 (#24570)Joas Schilling2016-05-121-926/+0
|
* apps/files_trashbin: Fix typos in comments (found and fixed by codespell)Stefan Weil2016-03-301-1/+1
| | | | | | Fix also a wrong word. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Properly check path validity before deleting to trashVincent Petry2016-03-041-1/+1
| | | | | This prevents deleting the whole "files" folder of the user whenever $ownerPath is empty. This can happen in concurrency situations.
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Update author informationLukas Reschke2016-03-011-1/+0
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* get the actual user instead of a federated cloud idBjoern Schiessle2016-02-181-40/+62
| | | | | | $view->getUidAndFilename($filename); returns the federated cloud id in case of a federated share. But in this case we need the local user who "owns" the file which is the current logged in user in case of a federated share
* Handles null as return code and uses proper UserFolder in trashbinMorris Jobke2016-02-161-6/+10
|
* Consolidate getQuota and setQuota methods in User instanceArthur Schiwon2016-02-091-4/+1
|
* Merge pull request #21117 from owncloud/owner-file-existsThomas Müller2016-01-151-13/+6
|\ | | | | Only return an owner if the file exists + improved getUidAndFilename
| * handle not found in trash hookRobin Appelman2016-01-111-1/+5
| |
| * de-deplicate getUidAndFilenameRobin Appelman2016-01-111-12/+1
| |
* | Happy new year!Thomas Müller2016-01-121-2/+3
|/
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-071-6/+7
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Cleanup trashbin expire codeMorris Jobke2015-11-301-15/+6
| | | | * requested by @schiesbn
* Deduplicate queued trashbin expire jobsMorris Jobke2015-11-271-16/+9
| | | | | | | | * fixes #20425 * this removes the argument trashbin size from the expire job - it is now calculated in the expire job * the queue now detects properly that the job is already queue and doesn't add it again
* Make Cache\Updater per storageRobin Appelman2015-11-251-3/+3
|
* Update license headersLukas Reschke2015-10-261-1/+1
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-2/+12
| | | | | | | | | | Currently the `getPath` methods returned `NULL` in case when a file with the specified ID does not exist. This however mandates that developers are checking for the `NULL` case and if they do not the door for bugs with all kind of impact is widely opened. This is especially harmful if used in context with Views where the final result is limited based on the result of `getPath`, if `getPath` returns `NULL` PHP type juggles this to an empty string resulting in all possible kind of bugs. While one could argue that this is a misusage of the API the fact is that it is very often misused and an exception will trigger an immediate stop of execution as well as log this behaviour and show a pretty error page. I also adjusted some usages where I believe that we need to catch these errors, in most cases this is though simply an error that should hard-fail.
* Fix trashbin handling of unknown/unlimited free spaceRobin Appelman2015-10-161-2/+3
|
* update licence headers via scriptMorris Jobke2015-10-051-0/+1
|
* first copy to owner and then move to current user because the encryptionBjoern Schiessle2015-10-011-18/+19
| | | | wrapper always expect to work on the owner storage
* Change small thumbnails to 32 pxMorris Jobke2015-09-301-1/+1
| | | | | * fixes #16913 * fixes issues in IE8 where the thumbnail is too big
* Replaces if ($file === '.' || $file === '..') by ↵Martin2015-09-221-1/+1
| | | | if(\OC\Files\Filesystem::isIgnoredDir($file)). Eases to find where this operation is used.
* Log deleted filesVictor Dubiniuk2015-09-161-0/+4
|
* Add expiration cronjobVictor Dubiniuk2015-09-161-1/+1
|
* Enhance trashbin expiration settingsVictor Dubiniuk2015-08-101-18/+13
|
* Remove OC_LogThomas Müller2015-07-031-4/+4
|
* Merge pull request #15506 from rullzer/core_apps_oc_log2ocp_utilMorris Jobke2015-07-011-6/+6
|\ | | | | Move core apps from OC_Log::write to OCP\Util
| * Move core apps from OC_Log::write to OCP\UtilRoeland Jago Douma2015-05-181-6/+6
| |
* | update license headers and authorsMorris Jobke2015-06-251-1/+1
| |
* | explain pre-hook scanRobin Appelman2015-06-151-0/+1
| |
* | ensure we dont have to scan a file in the trash wrapperRobin Appelman2015-06-151-0/+10
| |
* | Keep versions when deleting as recipientVincent Petry2015-06-021-9/+9
| | | | | | | | | | | | | | | | | | The original owner could not be resolved because the original file was already deleted, so no versions were retained. This fix passes the owner and path to retainVersions() since it was already resolved before the file deletion. This reactivates the versions logic and creates a copy of the versions in each trashbin.
* | Merge pull request #15985 from owncloud/hotfix/fix-encryption-referencesBjörn Schießle2015-05-261-26/+0
|\ \ | | | | | | [enc2] fix references to legacy encryption app name
| * | removing deletion of encryption keysClark Tomlinson2015-05-181-26/+0
| | | | | | | | | | | | this will be handled in the wrapper now
| * | fix references to legacy encryption app nameClark Tomlinson2015-05-181-1/+1
| |/
* | cleanup move/copy logic in trashRobin Appelman2015-05-191-20/+57
| |
* | fix target path for moveRobin Appelman2015-05-181-2/+6
| |
* | update cache after move to trashRobin Appelman2015-05-181-0/+2
| |
* | dont go trough the view when moving to trashRobin Appelman2015-05-181-12/+27
|/
* Fix restoring files from trash with unique nameVincent Petry2015-05-151-6/+11
| | | | | | | | | | When restoring a file, a unique name needs to be generated if a file with the same name already exists. Also fixed the restore() method to return false if the file to restore does not exist. Added unit tests to cover restore cases.
* Remove old encryption left overs from trashbinThomas Müller2015-04-071-102/+0
|
* kill OC_FileProxy :boom:Thomas Müller2015-04-071-27/+0
|
* setup storage wrappers before setting up the filesystemRobin Appelman2015-04-011-1/+1
|
* Move core apps from private to public functionsRoeland Jago Douma2015-04-011-1/+1
| | | | | | Apps still use OC_Helper and OC_Util functions even when public ones are already available. Sometimes the public one is even used in the same file.
* Update license headersJenkins for ownCloud2015-03-261-12/+26
|
* Recreate trashbin folder after full deletionVincent Petry2015-03-241-0/+2
|
* Merge pull request #14644 from owncloud/trash-expire-commandThomas Müller2015-03-161-25/+26
|\ | | | | Expire files from the trash in the background
| * don't rely on \OCP\User::getUser() - it is not set properly in case of async ↵Thomas Müller2015-03-101-10/+8
| | | | | | | | operations
| * Expire files from the trash in the backgroundRobin Appelman2015-03-021-15/+18
| |