Delete all files and directories of specific directory
1 post
• Page 1 of 1
Delete all files and directories of specific directory
If you want to delete all files and directories of a specific directory - with JVx - check following snippet:
- Code: Select all
String sTmp = System.getProperty("java.io.tmpdir");
File fi = new File(sTmp, "myapp");
fi.mkdirs();
//create temporary files
FileUtil.deleteSub(fi);
//or
//FileUtil.delete(fi);
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1