title
Products            Buy            Support Forum            Professional            About            Codec Central
 

MC tag editing, long pathnames, files destroyed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stenu

    • May 2003
    • 11

    MC tag editing, long pathnames, files destroyed

    Hi,

    It seems that if an mp3 file's whole pathname is about 255 characters long or more, editing the tag from the Music Collection just silently deletes the file. OS is WinXP Pro.

    I guess keeping the music collection under My Documents\My Music is a bad idea, at least if artist\album names are long as "Nigel North, various guitars (on original instruments); Maggie Cole, fortepiano_viginals\Classical Guitar Masterpieces on Historic Instruments"

    For some reason, WinXP allows you to rename files so that the whole pathname exceeds 255, but you cannot move files to a directory so deep that the resulting pathname is more than 255.

    Anyway, an error message from the tag editor would be a good idea.

    Thanks,
    Stenu
  • Spoon
    Administrator
    • Apr 2002
    • 44507

    #2
    I blame Microsoft...when programming they created something called MAX_PATH that is set to 255, they also said when ever handling filenames use that variable, so we all do - what do they do allow pathnames more than 255...buggers up just about every program ever written.
    Spoon
    www.dbpoweramp.com

    Comment

    • Stenu

      • May 2003
      • 11

      #3
      The paths are not over 255 long, EMusic downloader seems to handle long names correctly, it cuts the filename before the .mp3 suffix, and the resulting pathname is exactly 255 long. Problem is that when I edit tags of those files, they get silently deleted.

      -Stenu

      Comment

      • Stenu

        • May 2003
        • 11

        #4
        Hi,

        The source of the problem seems to be in the input codec, which creates temp files by adding .XXXXXX to the end of the file name. This of course creates too long pathnames when the pathname length is 249-255.

        I suggest you create a different temp naming scheme, this is really too dangerous. At least EMusic contains lots of music (classical mostly) where artist/album/track names are very long.

        Thanks,
        Stenu

        Comment

        Working...

        ]]>