TeamAmaze / TeamAmaze/AmazeFileManager

Rename downloaded pages if the file name exists

Open
#2,078 7 comments 1 reaction 1 assignee View on GitHub

@VishalNehra is already working on this.

Since Nov 9, 2020.

Area-FileOperations Issue-Feature
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.
While I like the feature which allows downloading pages when sending URLs to it, it has one problem:

When downloading the page a second time (i.e. because it has updated), then the existing HTML file will be overwritten.

Overwriting by default is a poor behaviour (not programmer's fault but default in UNIX, as far as I know, thus only a result of neglect), which has caused me to lose my backed up log by 3C Battery Monitor Widget (file name: bmw_history.txt).

Describe the solution you'd like
If the file name exists, rename the new files to example(1).html, example(2).html , and continuing.

Describe alternatives you've considered
Google Chrome for Android allows MHTML downloading, but not in Incognito mode.

Mozilla Firefox for Android allows PDF downloading, but PDF is not quite a website format (better than nothing, obviously).

Contributor guide

Open the contributing guide

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.