zhanghai / zhanghai/MaterialFiles

[Bug] Ftp client fails for elements with '[' in their path

Open
#926 3 comments 0 reactions 1 assignee View on GitHub

@zhanghai is already working on this.

Since Feb 18, 2026.

bug
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.

Screenshot_2023-02-19-04-40-47-651_me.zhanghai.android.files

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.