FS#8560 - Creating folder ending with a space not editable/deleteable in Windows

Attached to Project: Rockbox
Opened by Shiloh Hawley (gree665) - Tuesday, 05 February 2008, 05:41 GMT
Last edited by Peter D'Hoye (petur) - Thursday, 07 February 2008, 22:16 GMT
Task Type Bugs
Category Applications
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


If I use Rockbox file browser -> Context Menu -> Create Directory to create a directory that ends with a space such as "foo ", then I can see the folder under windows (2000 or XP) but get a "file not found" error if I try to delete or rename the folder with in explorer or from a DOS prompt.

Tried on the latest firmware (r16217) on the Ipod 4g and Toshiba Gigabeat F.

If you have trouble reproducing this, or want more info, let me know.
This task depends upon

Closed by  Peter D'Hoye (petur)
Thursday, 07 February 2008, 22:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixing this one also showed a nice dircache bug, fxed that too...
Comment by Jonas Häggqvist (rasher) - Tuesday, 05 February 2008, 06:02 GMT
IIRC, the FAT specs are a bit ambiguous about leading and trailing spaces, but Rockbox should probably follow Windows behavior where the specs are unclear. Adding a check for trailing spaces to fat_checkname() should be trivial.