Amazefilemanager: Cannot rename folder or file with certain name

Created on 30 Dec 2018  路  2Comments  路  Source: TeamAmaze/AmazeFileManager

Describe the bug

Pretty much the same as https://github.com/TeamAmaze/AmazeFileManager/issues/1522.
While trying to rename a folder or file to the same name as current folder, it fails and shows a toast with 'invalid name'.

Context

  • Device: Xiaomi MI 6
  • OS Version: Android 8.0.0
  • App version: 3.3.2

How to reproduce

Steps to reproduce the behavior:

  1. Open a folder
  2. Click on 'more' buttton on a folder or file in it
  3. Click on 'rename'
  4. Enter with the same name as current folder
  5. Click 'save'
  6. It shows 'Invalid name'

Expected behavior

The folder or file should be renamed.

Also, I wonder why the recursive restriction is added to mkdir and rename in the first place. Thanks.

Issue-Bug

Most helpful comment

It only fixed the restriction on mkdir(), the same restriction on rename() is not fixed.

See:https://github.com/TranceLove/AmazeFileManager/commit/c187524114c1d8c02657a5173fb266217cc748ac

All 2 comments

Wasn't this fixed? @TranceLove

It only fixed the restriction on mkdir(), the same restriction on rename() is not fixed.

See:https://github.com/TranceLove/AmazeFileManager/commit/c187524114c1d8c02657a5173fb266217cc748ac

Was this page helpful?
0 / 5 - 0 ratings