isDot

Whether the path is either "" or ".".

  1. bool isDot(StringType str)
  2. auto isDot(PathType p)
    isDot
    (
    PathType
    )
    (
    auto ref in PathType p
    )
    if (
    isSomePath!PathType
    )

Examples

assert(WindowsPath().isDot);
assert(WindowsPath("").isDot);
assert(WindowsPath(".").isDot);
assert(!WindowsPath("/").isDot);
assert(!WindowsPath("hello").isDot);
assert(PosixPath().isDot);
assert(PosixPath("").isDot);
assert(PosixPath(".").isDot);
assert(!PosixPath("/").isDot);
assert(!PosixPath("hello").isDot);

Meta