wolpi / prim-ftpd

FTP server app for android
Other
580 stars 78 forks source link

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

Open kord1e opened 2 months ago

kord1e commented 2 months ago

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 commented 2 months ago

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: