aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix issues with Keystone auth v3 in files_external appJulien Lutran2020-04-152-2/+2
| | | | Signed-off-by: Julien Lutran <julien.lutran@corp.ovh.com>
* Add visibility to all constantsChristoph Wurst2020-04-109-24/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1048-94/+16
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-106-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure every file ends with an empty newlineChristoph Wurst2020-04-091-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-092-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-093-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-2/+2
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-081-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* allow setting tooltips for external storage config optionsRobin Appelman2020-04-031-1/+21
| | | | | | allows explaining non-obvious config options a bit more Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-318-4/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20208 from nextcloud/smb-folder-contents-normalize-pathJohn Molakvoæ2020-03-301-1/+1
|\ | | | | normalize smb path while listing folder contents
| * normalize smb path while listing folder contentsRobin Appelman2020-03-271-1/+1
| | | | | | | | | | | | | | currently when listing `'/'`, it will include a double slash in the paths used for the listing logic this causes unneeeded cache misses in the statCache Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-272-2/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-252-2/+0
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Use the short array syntax, everywhereChristoph Wurst2020-03-265-25/+25
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19915 from nextcloud/external-storage-password-placeholdersJoas Schilling2020-03-133-2/+3
|\ | | | | Use placeholder values for password fields in external storage webui
| * Use placeholder values for password fields in external storage webuiRobin Appelman2020-03-123-2/+3
| | | | | | | | | | | | | | | | | | | | This prevents the password from being sent to the webui. While an admin will always be able to retrieve the passwords (as they can do arbitrairy code execution by design) this prevents casual password snooping Signed-off-by: Robin Appelman <robin@icewind.nl>
* | faster implementation of SFTP write streamRobin Appelman2020-03-103-0/+184
| | | | | | | | | | | | using mostly the same techniques as the read stream Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Faster implementation of sftp read streamRobin Appelman2020-03-062-0/+200
|/ | | | | | | | | | - Keeps a single file handle open instead of creating a new one for every stream_read - Read from sftp in large chunks instead of the 8k internal php size - Request a read for the next chunk while we're still processing the current one Signed-off-by: Robin Appelman <robin@icewind.nl>
* do not overwrite global user auth credentials with empty valuesArthur Schiwon2020-02-061-0/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2019-12-0556-63/+139
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-2241-139/+134
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make timeout a optional parameterDaniel Kesselberg2019-11-091-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Remove superfluous fcloseDaniel Kesselberg2019-10-211-1/+0
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #17258 from nextcloud/smb-timeout-configRoeland Jago Douma2019-09-272-1/+11
|\ | | | | add (hidden) option to configure smb timeout
| * Update apps/files_external/lib/Lib/Backend/SMB.phpRobin Appelman2019-09-251-1/+1
| | | | | | Co-Authored-By: Daniel Kesselberg <mail@danielkesselberg.de>
| * add (hidden) option to configure smb timeoutRobin Appelman2019-09-252-1/+11
| | | | | | | | | | | | | | | | hidden from ui to prevent clutter ```occ files_external:config <mount> timeout 30``` Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use local variable for directory nameDaniel Kesselberg2019-09-231-2/+3
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Don't strip path from directory prefixDaniel Kesselberg2019-09-231-1/+6
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Fill directory cache from opendirDaniel Kesselberg2019-09-231-1/+3
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Change visibility to private (from protected)Daniel Kesselberg2019-09-231-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Rename $location to $pathDaniel Kesselberg2019-09-231-7/+7
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Add method to check if directory existsDaniel Kesselberg2019-09-231-2/+41
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #16790 from nextcloud/admin-use-user-global-authRoeland Jago Douma2019-09-101-0/+75
|\ \ | | | | | | Allow admin configured mounts to use user configured global credentials
| * | allow setting user provided global credentials trough credentials popupRobin Appelman2019-09-091-1/+10
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Allow admin configured mounts to use user configured global credentialsRobin Appelman2019-09-091-0/+66
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | set a storage availability delay on auth issues to avoid lock outArthur Schiwon2019-08-221-5/+13
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | catch auth issues also when php-smbclient is in useArthur Schiwon2019-08-221-0/+8
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Ignore forbidden exception when fetching share mtime on SMB for symlinksMorris Jobke2019-07-081-0/+2
| | | | | | See https://github.com/nextcloud/server/pull/7556#issuecomment-499028026 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add option to show hidden files in SMB sharesRobin Appelman2019-05-232-5/+16
| | | | | | | | | | | Note hidden files can mean different things in smb and the option the the files web ui, the webui only counts files starting with '.' as hidden, while smb files can be marked as hidden regardless, any files that are marked as hidden on smb will thus be shown in the webui regardless of the setting in the files app. Fixes #15644 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Convert timestamp key value of metadata in Swift files_externalMichael Zamot2019-03-011-1/+1
| | | | | | | | modified: apps/files_external/lib/Lib/Storage/Swift.php Signed-off-by: Michael Zamot <michael@zamot.io> Convert value of timestamp metadata key in swift files_external to string
* Merge pull request #14211 from nextcloud/bugfix/prefix-path-to-filecache-s3Morris Jobke2019-02-191-2/+2
|\ | | | | Prefix $path for filename for internal file cache
| * Call headObject if file not in filecache :see_no_evil:Daniel Kesselberg2019-02-141-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Prefix $path for filename for internal file cacheDaniel Kesselberg2019-02-141-2/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | add LDAP ConfigHandler for external storages and "$home" varArthur Schiwon2019-02-141-2/+0
|/ | | | | | | | * handler registered upon OCA\\Files_External::loadAdditionalBackends event as user_ldap is loaded before files_external * new configuration field "ldapExtStorageHomeAttribute" (not in GUI yet) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-291-1/+2
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove value from cache on delete/clearDaniel Kesselberg2018-10-081-0/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use helper method for content length and last modifiedDaniel Kesselberg2018-10-011-11/+54
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>