aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedMount.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-06-061-25/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-131-2/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* optimize builtin storage wrappersRobin Appelman2023-11-081-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(caching): Avoid checking existence before fetchingChristoph Wurst2023-06-121-2/+3
| | | | | | | | The cache might expire between checking for key existence and fetching the value. In this rare case the code continues with a null value when it doesn't expect one. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add command for getting fileinfo for debuggingRobin Appelman2023-04-171-0/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* still include the share target in the cache key for validating share mountRobin Appelman2023-01-161-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix cache key used to verify shared mountpointsRobin Appelman2023-01-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-121-0/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* cache the verification of the share mountpointRobin Appelman2022-04-211-2/+20
| | | | | | after the initial verification this can only really be invalidated by a system mount (external/group/etc) being created at the share target since any normal file/folder creation will already conflict with the share Signed-off-by: Robin Appelman <robin@icewind.nl>
* invalidate mount cache after share renameRobin Appelman2022-03-241-19/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-231-1/+1
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* Let users choose a share_folderHinrich Mahler2021-09-061-1/+1
|
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to overwrite share target mountpointsJoas Schilling2020-02-171-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* cache parent exists status during share setupRobin Appelman2018-08-161-5/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* don't check if target dir exists when using the default share target directoryRobin Appelman2018-08-161-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* re-use view instances for shared storagesRobin Appelman2018-08-161-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more efficient way to detect added and removed mountsRobin Appelman2018-08-161-4/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more efficient unique share target generationRobin Appelman2018-08-161-11/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Less deprecated calls to OCP\Util::writeLogMorris Jobke2018-04-221-6/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to set custom mount typesRobin Appelman2017-04-281-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Typecast filecache 'storage' as int to return it as documented, fixes #3461Frédéric Fortier2017-02-201-1/+1
| | | | Signed-off-by: Frédéric Fortier <frederic.fortier@oronospolytechnique.com>
* Fix overwriting parameterRoeland Jago Douma2016-12-131-3/+3
| | | | | | Fixes #2641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* reuse cacheentryRobin Appelman2016-12-131-15/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-2/+2
|
* Added closeCursor in SharedMount numeric idVincent Petry2016-08-301-0/+1
|
* Prevent error with orphaned shares when updating user mount cacheVincent Petry2016-08-301-1/+6
|
* reuse existing root idRobin Appelman2016-08-221-1/+1
|
* get shared storage storage id without setting up the storageRobin Appelman2016-08-091-0/+13
|
* Group shares with same source and targetRoeland Jago Douma2016-08-031-7/+17
| | | | | | | Fixes #24575 Note that this is a very limited solution and eventually we want smarter merging!
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-3/+5
|
* Make getShareFolder use given view instead of static FSVincent Petry2016-06-171-1/+1
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move lib/ to PSR-4Joas Schilling2016-05-251-0/+226