Commit e330f097 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Par rm based on system rm.

parent 61141ead
import os
import sys
from multiprocessing import Pool
import shutil
if __name__ == '__main__':
def rm(path):
os.system('rm -rf %s' % path)
paths = sys.argv[1:]
with Pool(23) as p:
p.map(shutil.rmtree, paths)
p.map(rm, paths)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment