zhanghai / zhanghai/MaterialFiles

Connecting to an SFTP server forces an absolute path

Open
#877 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

App version: 1.5.2 (31) from F-Droid

Issue description

When i connect to an sftp server i would like to be able to specify a relative path or no path at all (i.e. just use the home directory).
For example, on my desktop i can run sshfs user@domain: mountpoint or sshfs user@domain:. mountpoint and it mounts the remote home directory if the server supports that.

Steps to reproduce
  • Add storage... > SFTP Server
  • Fill in details, put ~ or . for path or leave blank
Expected behavior

Material Files tries to connect to the path as specified and allows using it as long as the server supports it.

Observed behavior

Material Files always prepends the value of the path input field with a / if there isn't one already.

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.

Research direction

Start by tracing the Add storage > SFTP Server flow and how the path input is normalized before connection. Test relative paths, ~, ., and an empty path against a server that supports them; done means the entered path is used without forcing a leading /.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.