isDot

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

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

Examples

1 assert(WindowsPath().isDot);
2 assert(WindowsPath("").isDot);
3 assert(WindowsPath(".").isDot);
4 assert(!WindowsPath("/").isDot);
5 assert(!WindowsPath("hello").isDot);
6 assert(PosixPath().isDot);
7 assert(PosixPath("").isDot);
8 assert(PosixPath(".").isDot);
9 assert(!PosixPath("/").isDot);
10 assert(!PosixPath("hello").isDot);

Meta