init: ASW-37 初始化 device-api
This commit is contained in:
17
src/main/java/net/geedge/common/Constant.java
Normal file
17
src/main/java/net/geedge/common/Constant.java
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
T.FileUtil.mkdir(tempPath);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user