I am trying to use Python 3 to list folders located on a Windows share drive. I have mounted the share in Windows explorer and I can clearly see the files exists
I am using the following code:
path = r'//UNCpath/subfolder1/subfolder2/subfolder3/'
for root, dirs, files in os.walk(path):
print(root, dirs)
print('Hello')
but in the debugger, when I step over the for loop, it goes straight to the print('Hello') as if os.walk not finding anything. I don't get any error messages.
please let me know what I am missing, or if creds are needed.