zhanghai / zhanghai/MaterialFiles
FTP Client recursively only lists root directory
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
version: latest
steps to reproduce:
- add a FritzBox NAS as FTP server
- open added storage -> works as expected
- try to open folder
expected result:
- contents of selected folder is shown
actual result:
- root directory is shown again while selected folder is added to breadcrumbs
Unfortunately, I don't know what causes this to happen on the Fritzbox FTP server, but not on others.
I tested this solution posted on stackoverflow and it indeed solves the issue. (Adding changeWorkingDirectory(pathname) here)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in app/src/main/java/me/zhanghai/android/files/provider/ftp/client/FTPClientCompat.kt around the FTP directory listing path, then reproduce the behavior with a FritzBox FTP server. Verify that opening a folder displays that folder's contents rather than the root, while preserving the breadcrumb behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile, networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100