# Possible bugs when renaming folders

**URL:** <https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645>\
**Category:** Help & Support\
**Created:** [December 30, 2012, 6:08pm UTC](https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645 "2012-12-30T18:08:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BuckyB](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@BuckyB](https://resource.dopus.com/u/BuckyB)\
**Post date:** [December 30, 2012, 6:08pm UTC](https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645/1 "2012-12-30T18:08:46Z")

</div>

Some possible bugs I found:

1. Directory opus auto-deletes a trailing space from a filename, which is fine. However, it can't undo that. Example: Rename "Test 1" to "Test ". DirOpus will rename the folder to "Test" (without space). Undo will make Opus try to rename the folder "Test " (with space!) which it can't find.

2. It is not possible to create a foldername with a . (dot) at the end. DirOpus will delete the . (dot) which is not always what I want.

Two more things that probably have something to do with a script I use. The script (on key Shift+F2) moves all the selected files into a folder whose name is taken from the first selected file, but gives me the option to rename the folder before continuing:

@nofilenamequoting  
@runonce:@set dirname={dlgstringS|Enter name of folder to move selection into|{file$|noext}}  
Copy MOVE HERE FILE="{file$}" CREATEFOLDER="{$dirname}"

1. I can't properly rename foldernames ending in "{}" using the script. Example: Create a folder named "Test {}". Rename (using my script) to "Test ". I end up with a folder name "Test}". Note: Normal rename works just fine, so it must be something in my script, I guess something with how I use the quoting. However...

2. After step 3, there will be a folder named "Test}". Undo the rename. DirOpus will rename the folder to "Test {}" but it will also keep a folder with the old name "Test}". If there were any files in the folder, they will end up in the newly named folder "Test {}", the other folder with the old name "Test}" will be empty.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [December 30, 2012, 8:43pm UTC](https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645/2 "2012-12-30T20:43:33Z")

</div>

1. We might be able to improve that. Thanks for letting us know.

2. Names ending in . are illegal under the Windows API, which is why the dot is removed.

3 & 4. Not sure what you mean, sorry. The command doesn't rename folders, it moves things into a brand new folder. Did you paste the right command?

---

<div class="post-metadata">

**Author:** ![BuckyB](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@BuckyB](https://resource.dopus.com/u/BuckyB)\
**Post date:** [December 30, 2012, 8:54pm UTC](https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645/3 "2012-12-30T20:54:46Z")

</div>

1 & 2. Cool, thanks.

3 & 4: Yes, it is the right function I pasted. Sorry, bad wording, let me elaborate:

Suppose I have this folder "/Test blah {}" with a bunch of files in it. I want those files to end up in folder "/Test/blah/". So, I select the folder "Test blah {}" and execute my command to move that folder in a newly to create folder "Test", ending up with "Test/Test blah {}". Then I go into that folder and rename the (old folder) so I end up with "Test/blah/"

At least, that's what I'm trying to do, the {} get in my way.

I hope this makes it a little clearer, but I kinda doubt that 🙂

---

<div class="post-metadata">

**Author:** ![BuckyB](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@BuckyB](https://resource.dopus.com/u/BuckyB)\
**Post date:** [January 18, 2013, 6:53pm UTC](https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645/4 "2013-01-18T18:53:06Z")

</div>

Forgotten?

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [January 18, 2013, 6:58pm UTC](https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645/5 "2013-01-18T18:58:21Z")

</div>

Not forgotten.

---

<div class="post-metadata">

**Author:** ![BuckyB](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@BuckyB](https://resource.dopus.com/u/BuckyB)\
**Post date:** [January 18, 2013, 7:03pm UTC](https://resource.dopus.com/t/possible-bugs-when-renaming-folders/14645/6 "2013-01-18T19:03:30Z")

</div>

Great.
