fidl_fuchsia_io

Type Alias Path

Source
pub type Path = String;
Expand description

A path is a string of one or more components, separated by “/”. E.g. foo/bar/baz

§Invariants

A valid path must meet the following criteria:

  • It cannot be empty.
  • It cannot be longer than MAX_PATH_LENGTH.
  • It cannot have a leading “/”.
  • It cannot have a trailing “/”.
  • It must be exactly “.” OR each of its components must be a valid Name.

Paths should be transformed into their canonical forms at client side. For example, a client should convert "foo/bar/.././baz/" to "foo/baz" before using it as a path.

Aliased Type§

struct Path { /* private fields */ }