termux / termux/termux-api

termux-storage-get should have the options to run synchronously and retain original filename.

Open
#199 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

This command would be much easier to use in many cases if it had the option to block execution until a file has been selected and loaded. That way, if a script needs to perform on the file, it will know exactly when it's able to do so.

It would also be helpful to be able to retain the file's name. It could work like cp, mv, etc: if you provide the path to a directory, it will place the file in that directory with its original name. If you provide the path to a file, it would create or overwrite that file.

I have a rough version of this working. If anyone's interested I can clean up the code and publish it.

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 locating the termux-storage-get command implementation and its file-selection handling. Confirm how it currently signals completion and chooses the output path, then verify that synchronous execution, directory destinations with the original filename, and explicit file destinations behave as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.