Possible bugs when renaming folders

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.

  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?

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 :slight_smile:

Forgotten?

Not forgotten.

Great.