terrafrost
658cacce9f
Merge branch 'sftpv456' into sftpv456-2.0
2021-09-15 20:22:35 -05:00
terrafrost
f6ae13a092
fixes for setting atime and mtime
2021-09-15 08:33:31 -05:00
terrafrost
d48bdde5c6
update comment
2021-09-14 20:34:30 -05:00
terrafrost
a64103a386
attr wasn't defined
2021-09-14 20:33:11 -05:00
terrafrost
4769de45f0
comment is no longer valid
2021-09-14 09:11:53 -05:00
terrafrost
bb17b35d3e
preferentially use SFTPv3, since that's waaaay more tested than any other version
2021-09-14 09:05:41 -05:00
terrafrost
9ae2b0030d
SFTP: update get(), put() and touch()
2021-09-13 09:08:48 -05:00
terrafrost
5fcba4627f
update rename
2021-09-11 21:24:43 -05:00
terrafrost
6303fbac9e
fix OpenSSH detection
2021-09-09 05:39:20 -05:00
terrafrost
ced7dab1d5
update symlink
2021-09-08 09:34:16 -05:00
terrafrost
41b5f7cfe9
tweak version management stuff
2021-08-29 13:11:26 -05:00
terrafrost
42b4ab065b
typo
2021-08-29 13:04:32 -05:00
terrafrost
4102bbaccc
add precheck in a few more places
2021-08-29 13:02:09 -05:00
terrafrost
19e7737ead
fix _precheck
2021-08-29 13:00:21 -05:00
terrafrost
c9e4944370
pwd didn't work if called first
2021-08-27 21:57:38 -05:00
terrafrost
a25d3a75d3
fix pre-php-5.4 syntax error
2021-08-27 12:40:38 -05:00
terrafrost
69dba39bc9
update chown / chgrp if stmt
2021-08-26 20:18:27 -05:00
terrafrost
dbfc762257
update chown and chgrp to wor with sftpv4+
2021-08-26 18:26:57 -05:00
terrafrost
1f1e2794c7
add attribute reading for sftpv6
2021-08-26 09:23:33 -05:00
terrafrost
1b90375231
Merge branch '2.0' into 3.0
2021-08-24 20:24:50 -05:00
terrafrost
f02f0005b4
Merge branch '1.0' into 2.0
2021-08-24 20:22:54 -05:00
terrafrost
fc40727cfb
SFTP: add disableArbitraryLengthPackets()
2021-08-24 20:22:29 -05:00
terrafrost
9db03e1536
Merge branch '2.0' into 3.0
2021-08-24 20:20:20 -05:00
terrafrost
ea4b75f165
Merge branch '0.0' into 2.0
2021-08-24 20:19:18 -05:00
Nick Lassonde
20500123e5
add option to allow arbitrary length packets, for servers like OpenText which sends extremely long directory listings
2021-08-24 20:18:52 -05:00
terrafrost
f56158e73f
add attribute reading for sftpv5
2021-08-01 23:16:31 -05:00
terrafrost
092bad12c5
add attribute reading for sftpv4
2021-07-31 15:38:21 -05:00
terrafrost
4cb6bcb75e
add setPreferredVersion() and other changes
2021-07-31 13:00:52 -05:00
terrafrost
a19c6ab7e6
Merge branch '1.0' into 3.0
2021-07-28 21:00:24 -05:00
terrafrost
c08afba575
Merge branch '1.0' into 2.0
2021-07-28 20:34:13 -05:00
terrafrost
0ec9d2bdf1
SFTP: CS adjustments
2021-07-28 20:33:52 -05:00
terrafrost
b0fe99b792
Merge branch '1.0' into 2.0
2021-07-28 20:01:26 -05:00
Nick Lassonde
dab514faff
timeout in _get_channel_packet during _init_sftp_connection should be a failure
2021-07-28 20:01:19 -05:00
terrafrost
8186db7533
SFTP: get_channel_packet throws exceptions in 3.0
2021-07-05 08:35:39 -05:00
terrafrost
926d3545a2
Merge branch '2.0' into 3.0
2021-07-05 08:34:36 -05:00
terrafrost
6b0f0b4896
Merge branch '1.0' into 2.0
2021-07-05 08:34:18 -05:00
terrafrost
a02526e5e0
SFTP: return false if get_channel_packet returns false
2021-07-05 08:33:42 -05:00
terrafrost
bf88ba4382
incremental commit
2021-06-25 11:29:03 -05:00
terrafrost
fceb5b47da
SFTP: CS adjustments
2021-06-19 11:30:03 -05:00
ahoareau
f1c4164687
fix exception thrown because of undefined constant with php7.4
2021-06-16 08:43:35 -05:00
terrafrost
b32ffb64b8
Merge branch '2.0' into 3.0
2021-06-15 07:29:03 -05:00
terrafrost
d48c13b716
Merge branch '1.0' into 2.0
2021-06-15 07:27:34 -05:00
terrafrost
0673370eda
SFTP: don't check SFTP packet size after SFTP initialization
2021-06-15 07:24:34 -05:00
terrafrost
d1666cac50
SFTP: CS adjustments
2021-06-02 22:59:11 -05:00
terrafrost
81ffb62c20
Merge branch '2.0' into 3.0-channel-closure
2021-05-11 20:28:46 -05:00
terrafrost
1e36329433
Merge branch '1.0' into 2.0
2021-05-11 20:23:49 -05:00
terrafrost
9c47b0a696
SFTP: reopen channel on channel closure
2021-05-11 20:20:46 -05:00
terrafrost
05828a8759
SFTP: reopen channel on channel closure
2021-05-09 01:07:09 -05:00
terrafrost
4e1093fc22
CS adjustments
2021-04-12 06:17:04 -05:00
terrafrost
cd5e5126ca
SFTP: CS adjustment
2021-03-16 06:18:19 -05:00
Ernest Lebedev
906a5fafab
Added some PHPDoc fixes according to use cases from the docs ( https://phpseclib.com/docs/sftp ) to satisfy PHPStan
2021-03-10 07:58:31 -06:00
terrafrost
70bc5d01f0
Merge branch '2.0' into 3.0
2021-03-08 23:04:28 -06:00
terrafrost
cf8d62500b
Merge branch '1.0' into 2.0
2021-03-08 23:04:21 -06:00
terrafrost
a45ccbacb7
SFTP: digit only filenames were converted to integers by php
2021-03-08 23:03:38 -06:00
terrafrost
7b7d254a6c
rm docblock templates
2020-12-30 09:08:05 -06:00
terrafrost
a19b5b4ca8
update how @internal phpdoc attributes are used
2020-12-30 05:05:54 -06:00
terrafrost
f5d7c06264
Merge branch '2.0' into 3.0
2020-12-19 01:12:16 -06:00
terrafrost
c680c604c8
Merge branch '1.0' into 2.0
2020-12-19 01:07:08 -06:00
terrafrost
c21147a5bd
SFTP: clean up real time logging
2020-12-19 01:05:36 -06:00
terrafrost
31c5e50902
SFTP: change where stat cache is being cleared for uploads
2020-12-19 01:02:06 -06:00
terrafrost
08478feee7
SFTP: resuming uploads didn't work
2020-12-18 17:31:55 -06:00
terrafrost
afca3030c0
Merge branch '2.0' into 3.0
2020-11-26 21:09:21 -06:00
terrafrost
1ec3efa04b
Merge branch '1.0' into 2.0
2020-11-26 21:09:17 -06:00
terrafrost
0b20aff6ff
SFTP: CS adjustments
2020-11-26 21:08:49 -06:00
terrafrost
b310f694ef
Merge branch '2.0' into 3.0
2020-11-26 19:10:48 -06:00
terrafrost
bf03b0302b
Merge branch '1.0' into 2.0
2020-11-26 19:10:39 -06:00
Adrian
9547587cb7
SFTP: add stream to get method
2020-11-26 18:56:02 -06:00
terrafrost
7e337c9bd7
Merge branch '2.0' into 3.0
2020-11-01 09:31:17 -06:00
terrafrost
e18880009b
Merge branch '1.0' into 2.0
2020-10-31 15:15:06 -05:00
Thomas A. Hirsch
b2ae60f0a9
$progressCallback should be called after a specific amount of data has been received and not, if its just requested, as the requested packets might be more as the available and received data.
2020-10-31 15:05:05 -05:00
William Desportes
480af6b980
Merge branch '2.0' into 3.0
2020-09-09 10:46:22 +02:00
William Desportes
05f6467b1d
Merge branch '1.0' into 2.0
2020-09-09 09:56:23 +02:00
William Desportes
2ae683479a
Fix phpdoc errors
2020-09-09 09:43:26 +02:00
terrafrost
fc4a1b0083
Merge branch '2.0' into 3.0
2020-08-30 08:22:20 -05:00
terrafrost
604b94d011
Merge branch '1.0' into 2.0
2020-08-30 08:22:13 -05:00
terrafrost
f4e017f383
SFTP: "fix" rare resource not closed error
2020-08-30 08:21:50 -05:00
terrafrost
8f62b798ef
Merge branch '2.0' into 3.0
2020-08-09 11:00:57 -05:00
terrafrost
ed20bba5e7
Merge branch '1.0' into 2.0
2020-08-09 11:00:49 -05:00
terrafrost
239bc63618
SSH2: uploads on low speed networks could get in infinite loop
2020-08-09 11:00:12 -05:00
terrafrost
abe8f6aab8
Merge branch '2.0' into 3.0
2020-07-30 22:59:13 -05:00
terrafrost
82406869fb
Merge branch '1.0' into 2.0
2020-07-30 22:58:56 -05:00
terrafrost
ea653e1b01
SFTP: add enableDatePreservation() / disableDatePreservation()
2020-07-30 09:12:23 -05:00
terrafrost
9e81c7e257
Merge branch '2.0' into 3.0
2020-07-07 23:47:47 -05:00
terrafrost
c89cd789f4
Merge branch '1.0' into 2.0
2020-07-07 23:47:41 -05:00
terrafrost
d8e39b0864
SFTP: change upload packet size from 4KB to 32KB
2020-07-07 23:47:17 -05:00
terrafrost
85d55164a6
Merge branch '2.0' into 3.0
2020-05-10 23:52:28 -05:00
terrafrost
ceaffa8fa9
Merge branch '1.0' into 2.0
2020-05-10 23:52:20 -05:00
terrafrost
ef9785d9c5
SFTP: if /path/to/file is a file then /path/to/file/whatever errors
2020-05-10 23:51:16 -05:00
terrafrost
4af7ca4c09
Merge branch '2.0' into 3.0
2020-05-01 21:36:02 -05:00
terrafrost
2a6fc5695c
Merge branch '1.0' into 2.0
2020-05-01 21:35:53 -05:00
terrafrost
a07f5bc6a2
SFTP: realpath('') produced an error
2020-05-01 21:34:44 -05:00
terrafrost
ceff4cfbbc
rm call_user_func() calls
2020-04-05 15:04:22 -05:00
terrafrost
9c0ad2f1f4
SFTP: optimize call to parent login method for 2.0 branch
2020-04-04 12:49:56 -05:00
terrafrost
e02b93443c
Merge branch '1.0' into 2.0
2020-04-04 12:49:41 -05:00
terrafrost
c301ddf38f
SFTP: make it so extending SFTP class doesn't cause a segfault
2020-04-04 12:47:30 -05:00
terrafrost
542bb6cca1
Merge branch '2.0' into 3.0
2020-03-30 07:36:43 -05:00
terrafrost
7e67f882ee
Merge branch '1.0-mkdir-mode-adjustment' into 2.0-mkdir-mode-adjustment
2020-03-28 18:05:49 -05:00
terrafrost
5e2951f83a
SFTP: change the mode with a SETSTAT instead of MKDIR
2020-03-28 18:04:26 -05:00
terrafrost
ef04a176dd
Merge branch '2.0' into 3.0
2020-03-09 20:02:17 -05:00
terrafrost
63a76e88a1
Merge branch '1.0' into 2.0
2020-03-09 19:49:37 -05:00
terrafrost
229f6af1ca
SFTP: re-use SSH2 login method
2020-03-09 19:49:20 -05:00
terrafrost
053e856a47
Merge branch '2.0-speed-up-uploads' into 3.0-speed-up-uploads
2020-02-25 20:45:18 -06:00
terrafrost
a563ee6704
Merge branch '1.0-speed-up-uploads' into 2.0-speed-up-uploads
2020-02-25 20:42:32 -06:00
terrafrost
08e4096e7c
SFTP: speed up uploads
2020-02-25 20:37:20 -06:00
terrafrost
8c8e805c73
Merge branch '2.0' into 3.0
2020-02-25 00:00:25 -06:00
terrafrost
c18159618e
Merge branch '1.0' into 2.0
2020-02-24 22:16:50 -06:00
terrafrost
db6ce986f3
Revert "SFTP: don't buffer up download requests (PuTTY doesn't)"
...
This reverts commit 333e2e4c2b
.
2020-02-24 22:14:28 -06:00
terrafrost
8dac275a03
SFTP: rm size() (we already have filesize())
2020-02-11 23:25:04 -06:00
terrafrost
b95120c808
SFTP: change visibility of sortOptions for phpseclib2_compat
2020-02-11 06:29:21 -06:00
terrafrost
f8685c0577
SFTP: _get_sftp_packet() -> get_sftp_packet()
2020-02-10 21:09:22 -06:00
terrafrost
f44d39fb19
SFTP: rm permissions attribute
2020-02-10 21:05:00 -06:00
terrafrost
be221d8b23
Merge branch '2.0' into 3.0
2019-12-25 17:49:03 -06:00
terrafrost
de4a60de9d
Merge branch '1.0' into 2.0
2019-12-25 17:36:31 -06:00
terrafrost
333e2e4c2b
SFTP: don't buffer up download requests (PuTTY doesn't)
2019-12-25 11:31:43 -06:00
terrafrost
653dbd7f94
rename phpseclib/phpseclib to phpseclib/phpseclib3 for 3.0 branch
2019-11-21 19:38:03 -06:00
terrafrost
69a11136ae
SSH2: ping tweaks
2019-09-10 19:52:35 -05:00
terrafrost
71aa8165fa
Merge branch '2.0'
2019-09-10 18:13:12 -05:00
terrafrost
2cf180fb47
Merge branch '1.0' into 2.0
2019-09-10 17:43:41 -05:00
terrafrost
fbf36728fd
SSH2 / SFTP: fix issues with ping()
2019-09-10 17:31:43 -05:00
terrafrost
b89c488f43
SFTP: unpack() -> unpackSSH2()
2019-08-22 05:01:33 -05:00
terrafrost
e71f203742
Merge branch 'master-callback'
2019-06-16 15:31:39 -05:00
terrafrost
82454229f6
Merge branch '2.0-callback' into 2.0
2019-06-16 15:31:31 -05:00
terrafrost
f8d8ad24fd
Merge branch '1.0-callback' into 1.0
2019-06-16 15:31:22 -05:00
terrafrost
aa8a30cd81
Merge branch '2.0'
2019-06-16 11:04:31 -05:00
terrafrost
0932fb3054
Merge branch '1.0' into 2.0
2019-06-16 11:03:37 -05:00
Rubens Matrono
a7d038830c
fix array_merge(): Argument #1 is not an array
2019-06-16 11:03:27 -05:00
terrafrost
30320f5a91
Merge branch '2.0-callback' into master-callback
2019-06-02 08:22:26 -05:00
terrafrost
a0fa38db6d
Merge branch '1.0-callback' into 2.0-callback
2019-06-02 08:20:07 -05:00
terrafrost
e988abcdb1
SFTP: add callback parameter to get()
2019-06-02 08:19:41 -05:00
terrafrost
79f925e43c
SFTP: replace user_error() with Exceptions
2019-05-28 08:52:53 -05:00
terrafrost
72b4bf74d2
SFTP: use microtime(true)
2019-05-28 08:50:22 -05:00
terrafrost
a773ae80bd
Merge branch '2.0'
2019-05-28 08:47:59 -05:00
terrafrost
06ccf5d1f9
Merge branch '1.0' into 2.0
2019-05-28 08:47:51 -05:00
terrafrost
8df35cc368
SFTP: improve handling of malformed packets
2019-05-28 08:47:34 -05:00
terrafrost
cee3f3cd4a
SFTP: use Strings::packSSH2() / Strings::unpackSSH2()
2019-04-03 22:09:15 -05:00
terrafrost
d329814f55
SSH2: send_binary_packet() now always throws exceptions on error
2019-03-31 00:33:57 -05:00
terrafrost
8ce392f218
SFTP: nlist() didn't return empty directories - now it does
...
I view this as a BC breaking change so atm do not plan on
backporting it to 1.0/2.0. eg. now, all subdirectories have . and
.. as "files" whereas before they didn't
2019-03-16 09:41:06 -05:00
terrafrost
496fcd18cd
Merge branch '2.0'
2019-03-03 18:42:47 -06:00
terrafrost
03d9efcbc9
Merge branch '1.0' into 2.0
2019-03-03 18:40:36 -06:00
terrafrost
fce6063de6
SFTP: make it so get() can correctly handle out of order responses
2019-03-03 18:38:57 -06:00
Jakub Chábek
bee5fd70d8
Fix invalid method name + usages in comments
2018-09-10 17:20:48 +02:00
terrafrost
6021e74a79
Merge branch '2.0-dsas'
2018-08-18 15:04:51 -05:00
terrafrost
82967a40d4
Merge branch '1.0-dsas' into 2.0
2018-08-18 15:03:25 -05:00
terrafrost
f7f156b537
SFTP: use lstat in rawlist instead of stat
2018-08-18 15:02:42 -05:00
Dean Sas
426dbdbfcd
Ensure SFTP::rawlist gives same results regardless of statcache
...
Previously SFTP::rawlist gave different results depending on whether the
stat cache was enabled or not. With the stat cache turned off it did not
treat directories correctly, as it relied on the stat cache even though
it was not populated.
2018-08-18 08:36:16 -05:00
luz.paz
380517ef00
Misc. trivial typos
...
Found via `codespell -q 3`
2018-03-03 07:07:14 -05:00
terrafrost
63b6df29a8
Merge branch '2.0'
2018-02-07 21:24:51 -06:00
terrafrost
473c980d0c
Merge branch '1.0' into 2.0
2018-02-07 21:23:21 -06:00
terrafrost
1468ef1a23
SFTP: fix issue with extended attribute on 64-bit PHP installs
2018-02-07 21:22:54 -06:00
terrafrost
59faa1d253
Merge branch '2.0'
2018-01-01 13:09:18 -06:00