Do checking for windowsPath.