19 lines
455 B
Java
19 lines
455 B
Java
package net.geedge.common;
|
|
|
|
import java.io.File;
|
|
|
|
public class Constant {
|
|
/**
|
|
* 临时目录
|
|
*/
|
|
public static final String TEMP_PATH = System.getProperty("user.dir") + File.separator + "tmp";
|
|
|
|
static {
|
|
File tempPath = T.FileUtil.file(TEMP_PATH);
|
|
// 程序启动清空临时目录
|
|
// T.FileUtil.del(tempPath);
|
|
if (!T.FileUtil.exist(tempPath)) {
|
|
T.FileUtil.mkdir(tempPath);
|
|
}
|
|
}
|
|
} |