Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = []
- for key,value in remote_servers.items():
- print(key + 't' + value)
- if os.path.exists(value):
- deb.debug('listing: ' + value)
- x = [f.name for f in os.scandir(value) if f.is_dir()]
- print(x)
- else:
- print("Cannot access '" + value + "'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement