Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 3 gadiem
Daniel Kesselberg
ba3a855ad8
Remove unused method uploadFile
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pirms 3 gadiem
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>
pirms 4 gadiem
Christoph Wurst
14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
44577e4345
Remove trailing and in between spaces
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
85e369cddb
Fix multiline comments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
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>
pirms 4 gadiem
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>
pirms 4 gadiem
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
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>
pirms 4 gadiem
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>
pirms 6 gadiem
Morris Jobke
9ff51aafc5
Use index based string access for substr with length of 1
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Joas Schilling
7a62fbd205
Fix comparisons in the files external app
Signed-off-by: Joas Schilling <coding@schilljs.com>
pirms 7 gadiem
Morris Jobke
c54a59d51e
Remove unused use statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Morris Jobke
a4ad8af6e3
Add proper default value for datadir
* better safe than sorry
* fixes #3091
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 7 gadiem
Joas Schilling
0215b004da
Update with robin
pirms 8 gadiem
Joas Schilling
813f0a0f40
Fix apps/
pirms 8 gadiem
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
pirms 8 gadiem
Robin Appelman
f98cb9efa0
Fix type hinting
pirms 8 gadiem
Lukas Reschke
aba539703c
Update license headers
pirms 8 gadiem
Joas Schilling
4576891f10
Move Lib\Storage to PSR-4
pirms 8 gadiem
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
pirms 8 gadiem
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.
pirms 8 gadiem
Senorsen
a6631eceb4
Add urlencode to username part of ftp and sftp links
according to #17796
pirms 8 gadiem
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
pirms 8 gadiem
Robin Appelman
54e58b520c
Handle no user set in sftp constructor
pirms 8 gadiem
Thomas Müller
682821c71e
Happy new year!
pirms 8 gadiem
Scrutinizer Auto-Fixer
dcbd603514
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
pirms 8 gadiem
Robin Appelman
67710e62fa
Fix parsing of sftp hosts when using ipv6
pirms 8 gadiem
Morris Jobke
8366ce2767
deduplicate @xenopathic
pirms 8 gadiem
Morris Jobke
b945d71384
update licence headers via script
pirms 8 gadiem
Robin McCorkell
1084e3adc7
Migrate SFTP_Key external storage to new API
The SFTP backend now supports public key authentication alongside
password authentication.
pirms 8 gadiem
Lukas Reschke
99224905d8
Use absolute namespace
pirms 8 gadiem
Andreas Fischer
3b803db6d8
Update phpseclib to 2.0
pirms 8 gadiem
Robin Appelman
da951ba059
Use the new IteratorDirectory instead of the fakedir wrapper
pirms 9 gadiem
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.
pirms 9 gadiem
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.
pirms 9 gadiem
Jenkins for ownCloud
b585d87d9d
Update license headers
pirms 9 gadiem
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
pirms 9 gadiem
Lukas Reschke
dbb665a361
Add some PHPDocs
My IDE was crying...
pirms 9 gadiem
Lukas Reschke
1229184873
Fix code that never worked
Introduced with 1df8a5a774
in February 2013…
pirms 9 gadiem
Lukas Reschke
6dd5bc0379
Fix code style as per review
pirms 9 gadiem
SA
350f8eb86e
Add support for sftp custom port
pirms 9 gadiem
Jenkins for ownCloud
6a1a4880f0
Updating license headers
pirms 9 gadiem
Andreas Fischer
c640e2fa66
Update phpseclib to version 0.3.9.
pirms 9 gadiem