I am learning the os module of python, where I wrote the following code to try out the functions of the module.
Input:
os.getcwd()
Output:
'C:\\projects\\humming_bird'
Input:
os.listdir()
Output:
['.ipynb_checkpoints',
'All_images',
'hummingbirds',
'Untitled.ipynb',
'video_test']
Input:
os.listdir('C:\projects\humming_bird\hummingbirds\train\Rufous_female')
Output:
OSError Traceback (most recent call last)
<ipython-input-23-fad4f5df47d8> in <module>
----> 1 os.listdir('hummingbirds\train\Rufous_female')
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'hummingbirds\train\\Rufous_female'
Despite the file is present at the given location, yet it's showing the error. Please help!