fuchsia.io/Directory.Rename
METHOD
fuchsia.io
sdk/fidl/fuchsia.io/directory.fidl:589
Renames a node named `src` to the name `dst`, in a directory represented
by `dst_parent_token`.
`src` and `dst` must be valid node names.
See [`Name`] for what constitutes a valid name.
This method requires the following rights on both the current connection, and the connection
identified by `dst_parent_token`:
* [`Rights.ENUMERATE`]
* [`Rights.MODIFY_DIRECTORY`]
The following requirements are necessary to avoid rights escalations.
If the source and destination directory differ, the source directory must also have the
maximal set of abilities supported for files, which would typically be
[`Rights.READ_BYTES`], [`Rights.WRITE_BYTES`], [`Rights.GET_ATTRIBUTES`] and
[`Rights.UPDATE_ATTRIBUTES`]. Some filesystems might also support the [`Rights.EXECUTE`]
right.
If `src` refers to a directory, and differs from the destination directory, then the source
directory must have also have the [`Rights.CONNECT`] and [`Rights.TRAVERSE`] rights.
* error `ZX_ERR_INVALID_ARGS` if `src` or `dst` is invalid.
* error `ZX_ERR_ACCESS_DENIED` for insufficient rights.
Relationships
-
ACCEPTS_TYPE→fuchsia.io/src -
ACCEPTS_TYPE→fuchsia.io/Name -
ACCEPTS_TYPE→fuchsia.io/dst_parent_token -
ACCEPTS_TYPE→fuchsia.io/Token -
ACCEPTS_TYPE→fuchsia.io/dst -
ACCEPTS_TYPE→fuchsia.io/Name
Documentation (1)
-
SUBSTANTIVE
sdk/fidl/fuchsia.io/directory.fidl:589↗
Tests (0)
No test references.
Examples (0)
No example references.
Gaps
Missing categories:
- examples
- tests
Findings (2)
-
WARNING
DOCUMENTED_UNTESTEDelement is documented but has no test references -
WARNING
MISSING_IN_CATEGORYno references in category "tests.unit_tests"