code: public boolean isWindowsInsecure()
    {
      String lower = getPath().toLowerCase(Locale.ENGLISH);
  
      int lastCh;
  
      if ((lastCh = lower.charAt(lower.length() - 1)) == '.'
          || lastCh == ' ' || lastCh == '*' || lastCh == '?'
          || ((lastCh == '/' || lastCh == '\\') && ! isDirectory())
          || lower.endsWith("::$data")
          || isWindowsSpecial(lower, "/con")
          || isWindowsSpecial(lower, "/aux")
          || isWindowsSpecial(lower, "/prn")
          || isWindowsSpecial(lower, "/nul")
          || isWindowsSpecial(lower, "/com1")
          || isWindowsSpecial(lower, "/com2")
          || isWindowsSpecial(lower, "/com3")
          || isWindowsSpecial(lower, "/com4")
          || isWindowsSpecial(lower, "/lpt1")
          || isWindowsSpecial(lower, "/lpt2")
          || isWindowsSpecial(lower, "/lpt3")) {
        return true;
      }
  
      return false;
    }
docs: Returns true for windows security issues.