fuchsia.io/Directory.Unlink
METHOD
fuchsia.io
sdk/fidl/fuchsia.io/directory.fidl:552
Removes a child node from the this directory's list of entries.
Note: this does not guarantee that the underlying object is destroyed.
Although the link will be removed from the containing directory,
objects with multiple references (such as files which are still open)
will not actually be destroyed until all references are closed.
* error `ZX_ERR_ACCESS_DENIED` if the connection does not have
[`Rights.WRITE_BYTES`].
* error `ZX_ERR_NOT_SUPPORTED` if the underlying filesystem does not
support writing.
* error `ZX_ERR_BAD_PATH` if `name` is invalid.
* error `ZX_ERR_NOT_EMPTY` if `name` refers to a non-empty directory.
* error `ZX_ERR_UNAVAILABLE` if `name` refers to a mount point,
containing a remote channel.
* error `ZX_ERR_NOT_DIR` if the options requested a directory but
something other than a directory was found.
Other errors may be returned for filesystem-specific reasons.
This method requires the following rights:
* [`Rights.ENUMERATE`]
* [`Rights.MODIFY_DIRECTORY`]
Relationships
-
ACCEPTS_TYPE→fuchsia.io/name -
ACCEPTS_TYPE→fuchsia.io/Name -
ACCEPTS_TYPE→fuchsia.io/options -
ACCEPTS_TYPE→fuchsia.io/flags -
ACCEPTS_TYPE→fuchsia.io/MUST_BE_DIRECTORY
Documentation (1)
-
SUBSTANTIVE
sdk/fidl/fuchsia.io/directory.fidl:552↗
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"