MCPcopy Create free account
hub / github.com/dagger/dagger / chown

Method chown

sdk/python/src/dagger/client/gen.py:4377–4395  ·  view source on GitHub ↗

Change the owner of the directory contents recursively. Parameters ---------- path: Path of the directory to change ownership of (e.g., "/"). owner: A user:group to set for the mounted directory and its contents. The user and group

(self, path: str, owner: str)

Source from the content-addressed store, hash-verified

4375 return Changeset(_ctx)
4376
4377 def chown(self, path: str, owner: str) -> Self:
4378 """Change the owner of the directory contents recursively.
4379
4380 Parameters
4381 ----------
4382 path:
4383 Path of the directory to change ownership of (e.g., "/").
4384 owner:
4385 A user:group to set for the mounted directory and its contents.
4386 The user and group can either be an ID (1000:1000) or a name
4387 (foo:bar).
4388 If the group is omitted, it defaults to the same as the user.
4389 """
4390 _args = [
4391 Arg("path", path),
4392 Arg("owner", owner),
4393 ]
4394 _ctx = self._select("chown", _args)
4395 return Directory(_ctx)
4396
4397 def diff(self, other: Self) -> Self:
4398 """Return the difference between this directory and an another directory.

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
DirectoryClass · 0.70

Tested by

no test coverage detected