Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. f = []
  2. for key,value in remote_servers.items():
  3. print(key + 't' + value)
  4. if os.path.exists(value):
  5. deb.debug('listing: ' + value)
  6. x = [f.name for f in os.scandir(value) if f.is_dir()]
  7. print(x)
  8. else:
  9. print("Cannot access '" + value + "'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement