zhanghai / zhanghai/MaterialFiles
[Bug] Ftp client fails for elements with '[' in their path
@zhanghai is already working on this.
Since Feb 18, 2026.
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
On ftp (connecting to an external server where the app is a client), files and folders containing the character '[' horribly misbehave in various ways. Trying to rename or delete such an element will kill the connection to the ftp server entirely, making every folder show as empty until the app is restarted. When creating or renaming a normal folder to one containing [, I got an apparent infinite loop where the folder contained itself (see attached image). All folders with [ in their name show as empty but don't otherwise break the connection.
There is probably more weird behavior but I figured it is likely a single fundamental issue percolating up from the protocol layer.

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.
Assessment
This issue has not been assessed yet.