pathpart
Pathpart is a term used in computing to denote an individual segment of a hierarchical path. A pathpart is the portion of a path that lies between separators, such as the slash character in POSIX and many URL paths or the backslash (and sometimes slash) used on Windows. In practice, pathparts are the elemental components that identify directories, files, or resources within a larger path.
Pathparts are used across different contexts. In file systems, a path is split into parts that represent
Normalization and encoding are common concerns with pathparts. URL paths often require percent-encoding of certain characters
Edge cases include empty or consecutive separators that yield empty pathparts in some parsers, as well as
Applications of pathparts include file management utilities, web routing and resource resolution, archive creation, and programming
See also: path normalization, URL encoding, path traversal, path parsing.