Skip to main content

source_subdirectory

Function source_subdirectory 

Source
pub fn source_subdirectory(raw: &str) -> Option<String>
Expand description

Returns a repository-relative folder selected by a GitHub/GitLab URL.

A repository URL has no subdirectory. Folder URLs may use either the provider’s normal /tree/<branch>/... form or a direct /... path.