Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Length limits for path, directory, and file names in the database?
« previous next »
  • Print
Pages: [1]

Author Topic: Length limits for path, directory, and file names in the database?  (Read 110 times)

Offline iPodVT

  • Member
  • *
  • Posts: 102
Length limits for path, directory, and file names in the database?
« on: January 14, 2023, 08:59:19 PM »
What is the limit for the length of a file pathname in the database?

Also, what is the length limit for a single component name (directory or the file itself) within the pathname?

I'm having an issue with a few tracks not playing and I think it's probably caused by an overly long pathname or component name within the path.  Classical Music tags are sometimes absurdly verbose.

Thanks.
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 102
Re: Length limits for path, directory, and file names in the database?
« Reply #1 on: January 14, 2023, 11:04:21 PM »
Yes, the problem was with an over-limit pathname, directory name, or file name, but I'm not sure which.  I am now able to play the problem track, but I don't know if the fix was because I shortened a component name, the whole pathname, or both.  So my question in the prior post still stands.  Thanks.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 876
Re: Length limits for path, directory, and file names in the database?
« Reply #2 on: January 15, 2023, 01:57:50 AM »
likely MAX_PATH which is 260 bytes
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 102
Re: Length limits for path, directory, and file names in the database?
« Reply #3 on: January 15, 2023, 10:40:46 AM »
I had several tracks whose pathname lengths were causing problems.  Some wouldn't play from any UI mechanism (database browser, file browser, playlist catalog).  Some were excluded from various listings in the database.  And some caused an error when trying to access their track info display.

When the database is built or updated is an error log generated?  If so, could a pathname length error be added to the log?  Or if no log is generated, maybe that's something that could be added someday?

In any case, thanks for helping me resolve my issue.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Length limits for path, directory, and file names in the database?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.02 seconds with 16 queries.