-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SftpAdapter not overwriting on move #1682
Conversation
(from https://flysystem.thephpleague.com/docs/usage/filesystem-api/ ) Judging by the failing tests this is based on some alternative facts 😉 But fixing the other adapters should probably be done in separate PRs. |
OK, I've moved the |
e89e565
to
7f5a780
Compare
@frankdejonge Apologies, I totally missed that this had conflicts. Those are resolved now. |
See thephpleague/flysystem#1682 for upstream fix
# Conflicts: # src/PhpseclibV3/SftpAdapterTest.php
@kynx I'm gonna try and get Just an FYI. If that works out we should support it in this adapter as well (and fallback to the manual solution if not supported). Edit: |
@SamMousa great idea with the The generic adapter solution is also a worthwhile compromise - I should have thought of something like that. TBH I'd completely forgotten this PR, but just checked and oops - it's been in production on one project for over a year! Got to find some tool to send reminders when something lurks in composer's' |
@kynx posix_rename has been merged: phpseclib/phpseclib#2029 Are you up for adding support to the sftp adapter? |
Currently the
SftpAdapter
doesn't overwrite existing files when moving, unlike other adapters. This PR adds that ability.