File extension ending with spaces [fixed]

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

File extension ending with spaces [fixed]

Post by bdeshi »

If I want to rename "file.txt" to
"file.txt  "
, filename collision prompt comes up.
If "overwrite" is selected, "system cannot find the file specified" keeps popping up. Now refresh, and the file is gone forever!
("suffix" renames successfully to
"file-001.txt  "
, although renaming this suffixed file again has the same problem)

Now, I know it's Windows' own problem, but shouldn't XY handle the situation with more safety?

More importantly, can anyone tell me how to get the file back? :blackstorm:
Last edited by bdeshi on 23 May 2014 17:33, edited 1 time in total.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: File extension ending with spaces

Post by admin »

SammaySarkar wrote:If I want to rename "file.txt" to
"file.txt  "
, filename collision prompt comes up.
How do you do this? I fail to get any prompt... :?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: File extension ending with spaces

Post by bdeshi »

For the lack of a pc nearby, key sequence:
CTRL+SHIFT+n, f,i,l,e, ENTER, F2, END, SPC, SPC, ENTER, (collision dialog should be here) LEFT, ENTER, (overwrite prompt) ENTER, (file not found msg) ENTER, ESC, F5. file.txt disappears. For the other case, repeat and select suffix.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: File extension ending with spaces

Post by admin »

It does not happen here. No collision dialog.

Can anybody repro this?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: File extension ending with spaces

Post by bdeshi »

Here's a screencap. Sorry for the huge size...
EDIT:since the problem was fixed, removed said huge screencap.
Last edited by bdeshi on 23 May 2014 17:32, edited 1 time in total.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: File extension ending with spaces

Post by LittleBiG »

admin wrote:It does not happen here. No collision dialog.

Can anybody repro this?
Nope. Win7x64

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: File extension ending with spaces

Post by admin »

Got it: It's the totally undocumented RenameAllowLeadingSpaces tweak. It has a bug. Fix comes.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: File extension ending with spaces

Post by bdeshi »

:appl: to all bugs: resistance is futile... :biggrin:

Meanwhile, any way to get back the lost files?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: File extension ending with spaces

Post by admin »

No, they are gone. :om: Unless you have "recuva" or something similar.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: File extension ending with spaces

Post by bdeshi »

Alright, I've recovered the file.
I didn't think for once it was just deleted :oops: was so sure the file system ate them.

Thanks again!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: File extension ending with spaces [fixed]

Post by admin »

The next beta will handle those beasts with more grace.

Post Reply