-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SFTP file support limited to a file at a time #905
Comments
@TranceLove Perhaps you would like to be tagged with this? |
This might be related to #887. |
I suppose so, solving #887 should help. My tests: Device: Oneplus One (Bacon) with CandyRom (7.1.2) Case 1: copying a file worth 346MB (which guarantees copy time > 5 mins) Case 2: Copy two folders at the same time, one with 150 files and one with 55 files |
@TranceLove I managed to pinpoint the problem. SFTP fails to get total size for directory. When being called |
Result of Server is running on Xenial, openssh version string See TranceLove/AmazeFileManager@df900b9d - since not officially a fix, so no PR was made yet. |
@TranceLove no success. Folder size shows up 0 bytes in properties dialog too, and copy progress also fails to show progress because of this. Also, this is the debug output
|
Awch... Non-Linux servers. Very sorry about this, but for counting folder sizes I currently rely on results of UNIX commands on the remote. sshj itself doesn't provide methods to do this conveniently. Maybe I can make some fallbacks if executing However, even with Linux servers, it's true that I'm unable to get the progress for both files and folders - as said above, the progress disappeared right after copy started. |
Added TranceLove/AmazeFileManager@2c7da45 with Please test to see if it's OK - if yes I'll pass it on as a PR. However, with this added the progress dialog still goes away after copy started. :( |
Seems to be working fine with my fix applied from #916 Edit:
👍 1 What do you mean by progress dialog. We're talking about notification progress here, right? |
Oops, my bad.🙇🏻♂️ |
So, did you get it working with #916 ? |
Got it working with #916, with a little glitch.
I recorded a test session on Lollipop emulator, below. Animated GIF costs 11.7MB, so I think hosting it on Youtube should make sense. |
This is strange. Is this always the case whenever you copy? Is it just for sftp or normal copy in internal memory faces this too? |
Alright, it seems I messed up with notification ids in last commit when I was trying to change it to int from string. Will fix this. Anyways, major problem seem to be fixed now. So this issue can be closed. |
Fixes in your PR? Add it as "Fixed" to close automagically. |
There is a similar problem that is selecting more than 1 file in a SFTP server, and then copying it locally, the first file gets copied correctly, and the notification hangs at the second file, and the copy operation does not continue further. |
I think with current Still getting problems with complex folder structures (as complex as an app source tree), but I think it should already able to handle most common cases. Hopefully it can be handled by #3921, so I'll be closing this for now. |
Briefly: Thank you so much for the SFTP support, it helped remove the final external app blob I had left on my phone.
With that said, it's worth mentioning that I've been using it with a private key, and I have noticed an odd bug:
Behaviour:
This is revision de2153d built using the installPlayDebug task.
The text was updated successfully, but these errors were encountered: