Lines Matching refs:target_dir
28 def zip(target_dir, zip_file, to_skip=None): # pylint: disable=W0622
30 if not os.path.isdir(target_dir):
31 raise IOError('%s does not exist!' % target_dir)
34 for r, d, f in os.walk(target_dir, topdown=True):
39 zi.filename = os.path.relpath(filepath, target_dir)
58 z.write(dirpath, os.path.relpath(dirpath, target_dir))
61 def unzip(zip_file, target_dir):
63 if not os.path.isdir(target_dir):
64 os.makedirs(target_dir)
71 dst_path = os.path.join(target_dir, dst_subpath)