Advertisement
Guest User

cj

a guest
Nov 22nd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. final2 = []
  2. one = os.path.join("broken_file", "rating4")
  3. os.listdir(one)
  4. for x in os.listdir(one):
  5. two = os.path.join(one,x)
  6. if os.path.isdir(two):
  7. for y in os.listdir(two):
  8. three = os.path.join(two,y)
  9. if os.path.isdir(three):
  10. for z in os.listdir(three):
  11. four = os.path.join(three,z)
  12. if os.path.isdir(four):
  13. pass
  14. else:
  15. final2.append(four)
  16.  
  17.  
  18. else:
  19. final2.append(three)
  20.  
  21. else:
  22. final2.append(two)
  23. sort(final2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement