SHARE
TWEET

cj

a guest Nov 22nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top