- Status Closed
- Percent Complete
- Task Type Bugs
- Category Operating System/Drivers
- Assigned To No-one
- Operating System iPod 5G
- Severity Medium
- Priority Very Low
- Reported Version Release 3.13
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#12965 - Music file does not playing because the character length limit in the path to the file
Hi, thanks for such awesome project!..
But I have probably found a bug. When I want to play such music file (that’s the first in the directory):
E:\Music\Aleksandr Shherbina\# Aleksandr Shherbina i mul’ti-bjend PAYZY IM. STANISLAVSKOGO - live-programma Zhivye na Nashem Radio (27.3.2014) [ogg]\01. Mjortvaja ryba.ogg
it does not playing, and Rockbox skipping directly to the 3rd file in the directory:
E:\Music\Aleksandr Shherbina\# Aleksandr Shherbina i mul’ti-bjend PAYZY IM. STANISLAVSKOGO - live-programma Zhivye na Nashem Radio (27.3.2014) [ogg]\03. Arabika.ogg
I think there’s a character lenght limit. Can we fix it?..
Thanks in advance,
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
There is a limit of 255 characters per file path/name in FAT32 (per Microsoft). Paths up to this length should work, but longer will not.
The longer path is just 172 chars so it should work.
Maybe there’s something wrong with the files or their compatibility. It would be good to rule that out, maybe by copying the files that won’t play into the root directory and attempting to play them from that location.
edit: they’re → their
Even if the file name is too long (acc. to the FAT spec) but some tool managed to copy it, Rockbox should use it short (aka “DOS”) name (8 chars long) when reading the directory. I’m not sure though whether file reading functions work correctly with such names.
@anon19546: Do you try to play the files from the browser or from the DB?
Atually, it won’t use the short name to find anything. It really couldn’t anyway if given only a long one since it would not be able to determine which short name was really the correct one. Anyway, that path should be no issue for lower-level stuff. The playlist code should strip the drive letter and then directories off the front until it matches something.