Skip to main content

entry_inside

Function entry_inside 

Source
pub(crate) fn entry_inside(
    workspace: &Path,
    raw: &str,
) -> Result<(PathBuf, String), String>
Expand description

The entry raw names, itself: a link is not followed, because a rename acts on the name in its folder. The folder is resolved (links included) and must lie inside workspace. Returns the entry on the host, and the container’s name for its folder (/workspace/...).

The folder is checked now and renamed in a moment later, as every route that takes a workspace path does: the entry handed on is spelled through the resolved folder, with no link left in it.