Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rcrath opened this issue Dec 4, 2024 · 0 comments

Comments

@rcrath
Copy link
Owner

rcrath commented Dec 4, 2024

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
   $:



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant