Skip to content
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

Getting directory list is extremely slow when there are lots of files #339

Open
kord1e opened this issue Apr 7, 2024 · 3 comments
Open

Comments

@kord1e
Copy link

kord1e commented Apr 7, 2024

For example, accessing the camera folder of the phone takes very long (several minutes) when there are lots of pictures. This often causes a timeout in the client unless the timeout value is extended.

primitive FTPD version: 7.0 (code: 63)
Phone: Oneplus 3T
OS: LineageOS for microG 18.1 (Android 11)
Protocol: SFTP
Storage type option: plain old filesystem
Client: Filezilla 3.63.0

@wolpi
Copy link
Owner

wolpi commented Apr 13, 2024

Yes, that is known. What storage type do you use? With SAF that is very slow. It is better with the others. This is caused by Android APIs. There is not much this app can do about it.

The approach Google wants us to use here is:

  • select pictures you want to transfer in some Photos App
  • share it with this app (in this case QuickShare works well, which launches a server serving those shared files)

@kord1e
Copy link
Author

kord1e commented Aug 8, 2024

Yes, that is known. What storage type do you use? With SAF that is very slow. It is better with the others. This is caused by Android APIs. There is not much this app can do about it.

I'm using "Plain old filesystem". I can try other options, although not Super user since my phone is not rooted and I don't want to root it.

I suppose that there is not much difference between protocols (SFTP vs FTP)?

@wolpi
Copy link
Owner

wolpi commented Aug 16, 2024

I'm using "Plain old filesystem"

Ok, that one is faster than SAF. So you use already the "better" one. As Read-Only SAF has been fixed in latest release you might try with this one. Note that Google has not published it yet on Play, thus you might have do download it from another source (see README).

I suppose that there is not much difference between protocols (SFTP vs FTP)?

Some users report that FTP is much faster for them.

But in this case it is likely to be independent of protocols. As I indicated above: when there are lots of pictures in DCIM folder Android APIs become very slow. In UIs that is handled differntly as they don't load all images at once. But with a file oriented app like this one we cannot do that.

And again the same suggestion as above: don't try to open such a folder directly. Use some Photos app to select the pictures you want to download and use share functionality to pass it to this server app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants