My python script raises an error on os.listdir but os.path.isdir indicates that the target location is indeed a path:
os.listdir
os.path.isdir