* 建造指定目錄
* 此方式會將vatrefund視為檔案= =?
*/
public static void CreateDir(){ System.out.println(); //String filePath = "WEB-INF/classes/com/hyweb/gip/vatrefund/123"; String filePath = "javagip/gipadmin/site/public/Data/vatReport/123"; File file = new File(filePath); if(!file.exists()) { file.getParentFile().mkdirs(); //File Delfile = new File(filePath); //Delfile.deleteOnExit(); try { file.createNewFile(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
沒有留言:
張貼留言