Amazefilemanager: Cannot rename foo.PNG to foo.png

Created on 27 Nov 2020  路  5Comments  路  Source: TeamAmaze/AmazeFileManager

Describe the bug
Amaze won't rename an file to the same filename with lowercase. It says "a file with the same name already exists"

To Reproduce
Steps to reproduce the behavior:

  1. Try to rename something to lowercase or uppercase

Expected behavior
Renaming of the file

Smartphone (please complete the following information):

  • Device: Meizu M6Note
  • OS: Android 7.1.2
  • Rooted: Yes
  • Version: 3.5
Issue-Bug Severity-High

Most helpful comment

I'm working from my phone.
I think it's on an ext4 FS.
You can write a hack that will firstly rename to a temporary name, then to the desired new name.

All 5 comments

Are you renaming files on your phone, or remote files? If this is the case, since FAT filesystem is case insensitive, rename .PNG to .png would not work since they will be pointing to the same file.

I'm working from my phone.
I think it's on an ext4 FS.
You can write a hack that will firstly rename to a temporary name, then to the desired new name.

Wuoah!! Really creative thinking there 馃槂 maybe we'll pick it up

@VishalNehra Shall make use of File.getCanonicalPath() to detect file existence.

Dupe #773

Was this page helpful?
0 / 5 - 0 ratings

Related issues

staltz picture staltz  路  3Comments

MagTun picture MagTun  路  4Comments

germanfr picture germanfr  路  5Comments

organik1 picture organik1  路  4Comments

bluefiberbread picture bluefiberbread  路  3Comments