Home | History | Annotate | Download | only in scripts

Lines Matching full:path

125       output_path: A string, the path to write the archives and index file to.
149 self.index_fp = open(os.path.join(self.output_dir, 'main.py'), 'w')
151 os.path.walk(self.base_path, self.CompressDirectory, 1)
163 archive_path: Path to the archive to modify. This archive should not be
170 archive_path = os.path.join(self.output_dir, self.current_archive)
173 root, ext = os.path.splitext(archive_path)
195 def OpenZipFileAtPath(self, path, mode=None, compress=zipfile.ZIP_DEFLATED):
198 if os.path.exists(path):
204 return zipfile.ZipFile(path, mode)
206 return zipfile.ZipFile(path, mode, compress)
217 unused_id: A numeric identifier passed by the os.path.walk method, this
219 dir_path: A string, the path to the directory to compress.
228 zip_queue.append(os.path.join(dir_path, filename))
237 if os.path.isfile(target_file):
269 os.path.join(self.output_dir, self.current_archive), 'r')
291 archive_path = os.path.join(self.output_dir, self.current_archive)
310 os.path.join(self.output_dir, self.current_archive))
312 self.current_archive, os.path.getsize(archive_path))
320 filepath: A string, the path of the file to add.
328 curr_archive_path = os.path.join(self.output_dir, self.current_archive)
329 if os.path.isfile(filepath) and not os.path.islink(filepath):
330 if os.path.getsize(filepath) > 1048576:
350 archive_path = os.path.join(self.output_dir, self.current_archive)
351 return os.path.getsize(archive_path) <= self.max_size