Lines Matching refs:path
110 'name' should be the absolute path of the file to use when
122 assert os.path.isabs(name)
157 """The absolute path of the archive index file."""
310 """'pathname' is the absolute path of the archive file to create
324 assert os.path.isabs(pathname)
343 assert not os.path.exists(self.__arc_name)
418 path=self.__temp_dir,
419 filename=os.path.basename(idxfn))
530 operations, and return its absolute path. The temporary
541 and returns a file object for it and its absolute path. The
558 'pathname' is an optional string specifying the absolute path
602 hash_dir = os.path.join(file_dir, fhash[:2])
609 hash_fname = os.path.join(hash_dir, fhash)
618 src = os.path.join(fpath, fhash)
630 'mpath' is the absolute path of the package manifest file.
657 root = os.path.dirname(self.__arc_name)
658 pub_dir = os.path.join("publisher", pfmri.publisher)
659 pkg_dir = os.path.join(pub_dir, "pkg")
667 arcname = os.path.join(pkg_dir, pfmri.get_dir_path())
670 man_dir = os.path.dirname(arcname)
680 file_dir = os.path.join(pub_dir, "file")
727 'mpath' is the absolute path of the package manifest file.
759 def extract_catalog1(self, part, path, pub=None):
764 'path' is the absolute path of the directory to extract the
790 pubpath = os.path.join("publisher", pub) + os.path.sep
791 catpath = os.path.join(pubpath, "catalog") + os.path.sep
792 partpath = os.path.join(catpath, part)
801 src = os.path.join(croot, part)
802 if not os.path.exists(src):
808 os.path.join(croot, part),
809 os.path.join(path, part))
814 self.extract_to(partpath, path, filename=part)
825 return self.extract_to(partpath, path,
831 manpath = os.path.join(pubpath, "pkg") + os.path.sep
865 pkg.portable.copyfile(os.path.join(croot, part),
866 os.path.join(path, part))
870 def extract_package_files(self, hashes, path, pub=None):
875 'path' is the absolute path of the directory to extract the
901 hash_fname = os.path.join("file",
904 self.extract_to(name, path,
919 arcname = os.path.join("publisher", pub, "file",
921 self.extract_to(arcname, path, filename=fhash)
923 def extract_package_manifest(self, pfmri, path, filename=""):
929 'path' is the absolute path of the directory to extract the
935 named after the package stem in 'path' and a file named after
941 assert pfmri and path
949 arcname = os.path.join("publisher", pfmri.publisher, "pkg",
952 self.extract_to(arcname, path, filename=filename)
956 def extract_to(self, src, path, filename=""):
961 'path' is the absolute path of the directory to extract the file
1005 self.__arc_tfile.extract_to(member, path=path,
1023 dest = os.path.join(path, filename)
1113 hash_fname = os.path.join("file", fhash[:2], fhash)
1119 return self.get_file(os.path.join("publisher", pub, "file",
1140 arcname = os.path.join("publisher", pfmri.publisher, "pkg",
1176 p5iname = os.path.join("publisher", pfx,
1198 if os.path.exists(self.__temp_dir):
1261 arcname = os.path.join("publisher", npub.prefix,
1282 os.path.basename(self.__arc_name), nfiles,
1324 """The absolute path of the archive file."""