I am trying to cycle through files in a folder to get information, however the path gives me a "\" and I think that may be causing issues. As an example, if I run the full code (snippet shown below), I get the path /FAU/PythonCode/Urban-Sound-Classification-master/data/train/Train\\0.wav
.
How to get the correct path to show up?
Here is some minimal code:
import glob
import os
def input_to_target(base_data_path='/FAU/PythonCode/Urban-Sound-Classification-master/data/'):
train_path = os.path.join(base_data_path + "train/Train/*.wav")
train_files = glob.glob(train_path)
print(train_files)