java.security.AccessControlException: Access denied (java.io.FilePermission

前端 未结 3 1864
傲寒
傲寒 2020-11-29 10:22
final File parentDir = new File(\"S:\\\\PDSPopulatingProgram\");
parentDir.mkdir();
final String hash = \"popupateData\";
final String fileName = hash + \".txt\";
fi         


        
3条回答
  •  無奈伤痛
    2020-11-29 10:43

    Just document it here on Windows you need to escape the \ character:

    "e:\\directory\\-"
    

提交回复
热议问题