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);
Whether the path is either "" or ".".