filter.py 440 B

123456789101112131415161718192021
  1. import os
  2. import sys
  3. if __name__=="__main__":
  4. todo=os.listdir("todo")
  5. print("=> Filter <=")
  6. print("in :",len(todo))
  7. todo_flat=' '.join(todo)
  8. cmd="parallel ./run_walk ::: "+todo_flat+" ::: 30 > /dev/null"
  9. os.system(cmd)
  10. todo2=os.listdir("todo")
  11. rem=set(todo).intersection(todo2)
  12. print("rem :",len(rem))
  13. print("done :",len(todo)-len(rem))
  14. print("new :",len(todo2)-len(rem))