F2 (Rename) oddity with colon (:) in filename

Found a bug in "Everything"? report it here
Post Reply
therube
Posts: 5007
Joined: Thu Sep 03, 2009 6:48 pm

F2 (Rename) oddity with colon (:) in filename

Post by therube »

F2 (Rename) oddity with colon (:) in filename


Create a file

> C:\TMP\DUMY999.exe

Search: dumy999

> DUMY999.exe | C:\TMP

F2 (Rename)

> DUMY999 DUMY X: DUMYXYZ.exe

>> The C:\DEV\Locate\DUMY999 DUMY X\ folder does not exist.
>> The file might have been moved or deleted.
>>
>> Do you want to create it? (Yes | No)?
[Actually, this dialog is a 'Copy Folder' dialog, it says.]
[Ah, so F2, Rename, is able to rename a file to a different drive. That is unexpected.]


If you answer No, it seems the Rename is aborted.
[Maybe. Might even be something strange with that?]

If you answer Yes, a new, empty directory is created (rather then any type of file rename).

> C:\DEV\Locate\DUMY999 DUMY X\


C:\DEV\Locate\ is my Everything instalDir (actually it is where I extract Everything to & run from, I don't install).


I would expect...

At the most, a renamed file, something like:

> C:\TMP\DUMY999 DUMY X DUMYXYZ.exe

':' being an illegal character for a filename, so simply dropped, or something to that effect.
(Didn't test for other illegal characters to see if they do similar?)



(When this first occurred, or perhaps on a second Rename attempt, & I'm not sure of the exact steps I took, in which order I may have done things, but it seems that something happened - data loss - in that the file I was dealing with "disappeared". [I've had files disappear before.] Looked for files without extension, directories where I thought the file should be [I wasn't really paying too much attention, so not sure just where the source file had been located...]. Used RecentFilesView, but that didn't show that file. [There may be a delay, caching, in where it pulls its information from, cause initially it was not finding the file, but now it is, I think.] Anyhow, fired up Undelete program, & did see [& recovered] the file from there. So there may have been data loss involved?)
void
Developer
Posts: 16929
Joined: Fri Oct 16, 2009 11:31 pm

Re: F2 (Rename) oddity with colon (:) in filename

Post by void »

Everything treats : as a root specifier.

I have on my TODO list: Only basic roots should be allowed when renaming a file, eg: [a-z]:\ at the start of the renamed file.

Thanks for the bug report.
therube
Posts: 5007
Joined: Thu Sep 03, 2009 6:48 pm

Re: F2 (Rename) oddity with colon (:) in filename

Post by therube »

(You were to quick ;-).)

[Ah, so F2, Rename, is able to rename a file to a different drive. That is unexpected.]
So, with a file, C:\TMP\DUMY999.exe

F2 (Rename)

Code: Select all

from: DUMY999.exe
  to: X:\DUMY999.exe
Results in the file, DUMY999.exe being renamed (moved to), X:\DUMY999.exe
Post Reply