Package org.compiere.tools
Class FileUtil
- java.lang.Object
-
- org.compiere.tools.FileUtil
-
public class FileUtil extends Object
File Utilities- Version:
- $Id: FileUtil.java,v 1.4 2006/08/03 04:03:22 jjanke Exp $
- Author:
- Jorg Janke
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopy(MAttachment attachment, File destinationFile, int index)copy attachment entry to filestatic voiddeleteDirectory(File folder)delete folder recursivelystatic booleandeleteFolderRecursive(File path)static StringgetTempMailName(String subject, String extension)static voidmain(String[] args)Start
-
-
-
Field Detail
-
COPYRIGHT
public static final String COPYRIGHT
License Header- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
Start- Parameters:
args- fileName filter action
-
deleteFolderRecursive
public static boolean deleteFolderRecursive(File path) throws FileNotFoundException
- Parameters:
path-- Returns:
- true if deleted
- Throws:
FileNotFoundException
-
copy
public static void copy(MAttachment attachment, File destinationFile, int index)
copy attachment entry to file- Parameters:
attachment-destinationFile-index-
-
deleteDirectory
public static void deleteDirectory(File folder) throws IOException
delete folder recursively- Parameters:
folder-- Throws:
IOException
-
-