# File and folder rename won't allow to change case

**URL:** <https://forum.pydio.com/t/file-and-folder-rename-wont-allow-to-change-case/5951>\
**Category:** Pydio Cells\
**Created:** [July 17, 2024, 12:09pm UTC](https://forum.pydio.com/t/file-and-folder-rename-wont-allow-to-change-case/5951 "2024-07-17T12:09:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tecleandor](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/tecleandor/32/2416_2.png) [@tecleandor](https://forum.pydio.com/u/tecleandor)\
**Post date:** [July 17, 2024, 12:09pm UTC](https://forum.pydio.com/t/file-and-folder-rename-wont-allow-to-change-case/5951/1 "2024-07-17T12:09:14Z")

</div>

Hi! I created [an issue in the github repo](https://github.com/pydio/cells/issues/575) about this, but maybe those issues aren’t being checked, so I’m posting it around here…

### Issue

When I attempt to rename a file or folder by changing only the letter case of one or more characters (for example, trying to rename a folder from ‘test-Alvaro’ to ‘test-alvaro’), the Cells doesn’t allow the change. It treats the original name and the new name as if they were identical, even though they differ in capitalization.:

 ![cellsrename](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/66f82c9dd9895da69a2de05c5cc589498340b59c.png)

From what I’ve seen, this is due to one of the React prompt validators switching everything to lower case before comparing the strings:

Lines 29 to 35 in [cells/frontend/front-srv/assets/gui.ajax/res/js/ui/ReactUI/modal/PromptValidators.js](https://github.com/pydio/cells/blob/0acafc8281a0ee0a8d29d259cd309d208fa52683/frontend/front-srv/assets/gui.ajax/res/js/ui/ReactUI/modal/PromptValidators.js#L29-L35)

```js
 MustDifferFrom: (original) => { 
     return (value) => { 
         if(value && value.toLowerCase() === original.toLowerCase()) { 
             throw new Error('rename.newvalue.error.similar') 
         } 
     } 
 }, 

```

This (same file name, different case) shouldn’t be a problem as we’re:

- Using a case sensitive storage (so file names shouldn’t collide)
- Using flat storage (so file names won’t collide anyway as they’re all unique)

This looks like just a frontend check that maybe has a technical reason, or maybe not. Does it?

### Versions

- Debian 12
- ext4 fs
- Pydio Cells Home Edition 4.4.3
- Flat storage
- local MySQL DB

### Temporary Workaround

Meanwhile I’m changing the file name to an intermediate one (e.g. `test-Alvaro --> test-something --> test-alvaro`) and that works, but it’s a bit of a hassle, so I’d like to know…

### Solution ?

Maybe it’s interesting either:

- …removing the lower case comparison from that test…
- …or having a configuration option to disable it?

---

<div class="post-metadata">

**Author:** ![bsinou](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/bsinou/32/476_2.png) [@bsinou](https://forum.pydio.com/u/bsinou)\
**Post date:** [July 18, 2024, 9:23am UTC](https://forum.pydio.com/t/file-and-folder-rename-wont-allow-to-change-case/5951/2 "2024-07-18T09:23:20Z")

</div>

Hi @tecleandor and welcome to the forum.

I answered in the Github issue but to sum-up:

- many thanks for the detailed feedback
- there may be an opportunity to address this in the v5 but we cannot promise anything yet.

---

<div class="post-metadata">

**Author:** ![tecleandor](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/tecleandor/32/2416_2.png) [@tecleandor](https://forum.pydio.com/u/tecleandor)\
**Post date:** [July 18, 2024, 9:37pm UTC](https://forum.pydio.com/t/file-and-folder-rename-wont-allow-to-change-case/5951/3 "2024-07-18T21:37:32Z")

</div>

Thanks!

I added some details just in case it’s useful for the future.

---

<div class="post-metadata">

**Author:** ![alinamorozova](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/alinamorozova/32/2418_2.png) [@alinamorozova](https://forum.pydio.com/u/alinamorozova)\
**Post date:** [July 19, 2024, 5:59am UTC](https://forum.pydio.com/t/file-and-folder-rename-wont-allow-to-change-case/5951/4 "2024-07-19T05:59:35Z")

</div>

Hello,  
Thanks for the solution, this is very helpful for me.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)\
**Post date:** [July 30, 2024, 12:00pm UTC](https://forum.pydio.com/t/file-and-folder-rename-wont-allow-to-change-case/5951/5 "2024-07-30T12:00:12Z")

</div>

Closed on July 30, 2024, 12:00pm UTC

This topic was automatically closed 11 days after the last reply. New replies are no longer allowed.
