FileName.refersToParentDir

Determine if path has a reference to parent directory.

struct FileName
extern (D) nothrow static pure @nogc @safe
bool
refersToParentDir
(
const(char)[] name
)

Parameters

name const(char)[]

path

Return Value

Type: bool

true if path contains '..' reference to parent directory

Meta