Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 lat temu
Daniel Kesselberg
ba3a855ad8
Remove unused method uploadFile
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
3 lat temu
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
4 lat temu
Christoph Wurst
14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
44577e4345
Remove trailing and in between spaces
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
85e369cddb
Fix multiline comments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Robin Appelman
223ee42a53
faster implementation of SFTP write stream
using mostly the same techniques as the read stream
Signed-off-by: Robin Appelman <robin@icewind.nl>
4 lat temu
Robin Appelman
fe4e80093e
Faster implementation of sftp read stream
- 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>
4 lat temu
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* 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>
4 lat temu
Roeland Jago Douma
2b19add6b0
Add SFTP auth mechanism to use a password and public key for SFTP
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 lat temu
Morris Jobke
9ff51aafc5
Use index based string access for substr with length of 1
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 lat temu
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 lat temu
Joas Schilling
7a62fbd205
Fix comparisons in the files external app
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 lat temu
Morris Jobke
c54a59d51e
Remove unused use statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 lat temu
Morris Jobke
a4ad8af6e3
Add proper default value for datadir
* better safe than sorry
* fixes #3091
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 lat temu
Joas Schilling
0215b004da
Update with robin
8 lat temu
Joas Schilling
813f0a0f40
Fix apps/
8 lat temu
Vincent Petry
d372836efc
Fix overwriting folders on rename with SFTP
This aligns the behavior with other storages and also fixes the failing
unit test testRenameOverWriteDirectory
8 lat temu
Robin Appelman
f98cb9efa0
Fix type hinting
8 lat temu
Lukas Reschke
aba539703c
Update license headers
8 lat temu
Joas Schilling
4576891f10
Move Lib\Storage to PSR-4
8 lat temu
Robin McCorkell
4717605d22
Fix storage backend class namespaces and move to subdir
All classes that were previously \OC\Files\Storage\FooBar are now
\OCA\Files_External\Lib\Storage\FooBar
8 lat temu
Lukas Reschke
3dc5c59e57
Use RetryWrapper for SFTP storage
Equivalent to https://github.com/owncloud/core/pull/23442
Required for making encryption work with external storage reliable.
8 lat temu
Senorsen
a6631eceb4
Add urlencode to username part of ftp and sftp links
according to #17796
8 lat temu
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
8 lat temu
Robin Appelman
54e58b520c
Handle no user set in sftp constructor
8 lat temu
Thomas Müller
682821c71e
Happy new year!
8 lat temu
Scrutinizer Auto-Fixer
dcbd603514
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
8 lat temu
Robin Appelman
67710e62fa
Fix parsing of sftp hosts when using ipv6
8 lat temu
Morris Jobke
8366ce2767
deduplicate @xenopathic
8 lat temu
Morris Jobke
b945d71384
update licence headers via script
8 lat temu
Robin McCorkell
1084e3adc7
Migrate SFTP_Key external storage to new API
The SFTP backend now supports public key authentication alongside
password authentication.
8 lat temu
Lukas Reschke
99224905d8
Use absolute namespace
8 lat temu
Andreas Fischer
3b803db6d8
Update phpseclib to 2.0
8 lat temu
Robin Appelman
da951ba059
Use the new IteratorDirectory instead of the fakedir wrapper
9 lat temu
Vincent Petry
e15dd783ab
Workaround for empty dir deletion for SFTP
Explicitly clear the stat cache after deleting an empty folder to make
sure it is properly detected as deleted in subsequent requests.
This works around a problem with phpseclib where the folder is properly
deleted remotely but the stat cache was not updated.
9 lat temu
Vincent Petry
a6c5d65fd6
Fix SFTP storage id to be compatible with older ids
Remove port from SFTP storage id if it is 22.
This will prevent recreating a different storage entry due to id
mismatch after upgrade.
9 lat temu
Jenkins for ownCloud
b585d87d9d
Update license headers
9 lat temu
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
9 lat temu
Lukas Reschke
dbb665a361
Add some PHPDocs
My IDE was crying...
9 lat temu
Lukas Reschke
1229184873
Fix code that never worked
Introduced with 1df8a5a774
in February 2013…
9 lat temu
Lukas Reschke
6dd5bc0379
Fix code style as per review
9 lat temu
SA
350f8eb86e
Add support for sftp custom port
9 lat temu
Jenkins for ownCloud
6a1a4880f0
Updating license headers
9 lat temu
Andreas Fischer
c640e2fa66
Update phpseclib to version 0.3.9.
9 lat temu