I’m trying to list directories of smb NAS drive using Python, but getting below error,
>>> import os
>>> os.listdir(r"//nasxxx/aaaa/yyyy/" )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory:
'//nasxxx/data/yyyy/'
Able to connect the drive thru explorer locally and files are present, but not thru python list directories.