Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-232

shutil.pyo fails to save for a filename with dot and space

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • 1.0
    • File Move & Rename
    • None
    • Windows 7 64, fileserver is a Linux box

      log file below
      E: <sip.voidptr object at 0x037E9D58> 14:26:22 Traceback (most recent call last):
      File "picard\util\thread.pyo", line 59, in run_item
      File "picard\file.pyo", line 178, in _save_and_rename
      File "picard\file.pyo", line 310, in _rename
      File "shutil.pyo", line 299, in move
      File "shutil.pyo", line 128, in copy2
      File "shutil.pyo", line 83, in copyfile
      IOError: [Errno 22] invalid mode ('wb') or filename: u"\\\\ENRIQUE\\Music
      Louis Armstrong
      Singin' n' Playin'
      09 St.\u200aJames Infirmary.mp3"

      As you must have already realised from the log file the track is called "09 St. James Infirmary.mp3" from Louis Armstrong's album called "Singin' n' Playin'". The full path is "\\ENRIQUE\Music\Louis Armstrong\Singin' n' Playin'\09 St. James Infirmary.mp3" and that is perfectly valid in Windows 7 (both command line and file explorer) but also perfectly valid in Linux (ENRIQUE is a Linux file server). It is clear that the filename is not parsed properly

            Unassigned Unassigned
            jfds7u9 Max
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package