Lines Matching refs:path

194                 It can be a string which is the path to the file, a function
203 if not os.path.exists(data):
206 path=data)
207 elif os.path.isdir(data):
210 path=data)
222 e, path=data)
579 'path'. Token is the token to be searched against. Full value
595 """Given an image root, return the installed path of the action
596 if it has a installable payload (i.e. 'path' attribute)."""
598 return os.path.normpath(os.path.join(img_root,
599 self.attrs["path"]))
606 example, for a file action, 'path' might be the
608 "path: usr/lib/libc.so.1".
616 def makedirs(self, path, **kw):
617 """Make directory specified by 'path' with given permissions, as
627 # generate the components of the path. The first
630 pathlist = portable.split_path(path)
632 # Fill in the first path with the root of the filesystem
635 pathlist[0] = portable.get_root(path)
639 # os.path.isdir() follows links, which isn't
641 p = os.path.join(*pathlist[:i + 1])
650 if p == path:
657 err_txt = _("Unable to create {path}; a "
673 fs = os.lstat(path)
679 os.chmod(path, mode)
681 portable.chown(path, uid, gid)
688 fs = os.stat(os.path.join(*pathlist[:i]))
690 p = os.path.join(*pathlist[:i])
696 err_txt = _("Unable to create {path}; a "
717 os.mkdir(path, mode)
718 os.chmod(path, mode)
720 portable.chown(path, uid, gid)
729 # Hot path; grab reference to attrs and use list comprehensions
851 path = self.get_installed_path(pkgplan.image.get_root())
873 self, [("owner", _("'{path}' cannot be "
876 path=path, owner=owner,
889 self, [("owner", _("'{path}' cannot be "
891 "or invalid user.").format(path=path,
916 self, [("group", _("'{path}' cannot be "
919 path=path, group=group,
932 self, [("group", _("'{path}' cannot be "
934 "or invalid group.").format(path=path,
984 path = self.get_installed_path(img.get_root())
988 lstat = os.lstat(path)
1062 if "path" in self.attrs:
1063 return [os.path.dirname(os.path.normpath(
1064 self.attrs["path"]))]
1087 def remove_fsobj(self, pkgplan, path):
1096 portable.remove(path)
1101 elif e.errno == errno.EBUSY and os.path.ismount(path):
1107 "location and try again.").format(path)
1111 # os.path.ismount() is broken for lofs
1116 "as a mountpoint.").format(path)
1120 not stat.S_ISDIR(os.lstat(path).st_mode):
1136 os.rmdir(path)
1147 pkgplan.salvage(path)
1221 """Verifies that the specified path doesn't contain one or more
1223 ActionExecutionError exception if path check fails."""
1226 parent_path = os.path.dirname(final_path)
1230 real_parent_path = os.path.realpath(parent_path)
1237 # Now test each component of the parent path until one is found
1241 img_root = pkgplan.image.root.rstrip(os.path.sep)
1249 if os.path.islink(tmp):
1253 tmp = os.path.split(tmp)[0]
1256 parent_target = os.path.realpath(parent_dir)