Contents

isLexicallyNormal

Whether the path is in lexical-normal form, that is . and .. components have been collapsed lexically (i.e. without following symlinks).

Declaration

var isLexicallyNormal: Bool { get }

Discussion

Examples:

  • "/usr/local/bin".isLexicallyNormal == true

  • "../local/bin".isLexicallyNormal == true

  • "local/bin/..".isLexicallyNormal == false