Skip to content

script cannot parse filename if there is a space at the end, right before the extension (i.e., filename .wav) #36

@rcrath

Description

@rcrath
Source Files:
  Index  File Name                                                        Ratio    Sample Rate    Channels  Bit Depth
 ...
     16  rreplay - 141120 01 wvtbl F.wav                                   0.31          48000           2  float64
     17  rreplay - 141120 01 wvtbl G .wav                                  0.05          48000           2  float64
                                                     ^^^
     18  rreplay - 141120 01 wvtbl H-2.wav                                 0.28          48000           2  float64
 ...    

Enter the number(s) of the file(s) to select (e.g. 1, 3, 5-8),
or type 'q' to exit at any point: 17
Selected: rreplay - 141120 01 wvtbl G .wav
base: rreplay - 141120 01 wvtbl G
tmp_folder: rreplay - 141120 01 wvtbl G \tmp
cpy_folder: cpy
cpy: rreplay - 141120 01 wvtbl G .wav
cpy_path: rreplay - 141120 01 wvtbl G \tmp\cpy\rreplay - 141120 01 wvtbl G .wav
...
Traceback (most recent call last):
  File "E:\Dropbox\audio\wavetables\wavetabler\src\a_wvtbl.py", line 82, in <module>
    main()
  File "E:\Dropbox\audio\wavetables\wavetabler\src\a_wvtbl.py", line 76, in main
    selected_files = b_menu.run()
                     ^^^^^^^^^^^^
  File "E:\Dropbox\audio\wavetables\wavetabler\src\b_menu.py", line 156, in run
    aa_common.ensure_tmp_folder()
  File "E:\Dropbox\audio\wavetables\wavetabler\src\aa_common.py", line 309, in ensure_tmp_folder
    os.makedirs(tmp_folder)
  File "<frozen os>", line 225, in makedirs
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'rreplay - 141120 01 wvtbl G \\tmp'

(wvtbl_win) E:\Dropbox\audio\wavetables\wavetabler
   $:



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions