Lines Matching full:target_dir
27 def zip(target_dir, zip_file, blacklist=None): # pylint: disable=W0622
29 if not os.path.isdir(target_dir):
30 raise IOError('%s does not exist!' % target_dir)
33 for r, d, f in os.walk(target_dir, topdown=True):
38 zi.filename = os.path.relpath(filepath, target_dir)
50 z.write(dirpath, os.path.relpath(dirpath, target_dir))
53 def unzip(zip_file, target_dir):
55 if not os.path.isdir(target_dir):
56 os.makedirs(target_dir)
63 dst_path = os.path.join(target_dir, dst_subpath)