}
}
if (!mRootPath.endsWith("/"))
mRootPath += “/”;
return mRootPath;
}
/**
-
设置工作目录
-
@param context app context,不然会造成内存泄漏
-
@param path
*/
public static void setWorkPath(Context context, String path) {
mContext = context;
if (null != getRootPath()) {
mWorkPath = mRootPath + path;
}
if (!mWorkPath.endsWith("/")) {
mWorkPath += “/”;
}
File file = new File(mWorkPath);
if (!file.exists()){
boolean b = file.mkdirs();
}
}
public static String getDBpath() {
File file = new File(mWorkPath + DB_PATH_NAME);
if (!file.exists())
file.mkdirs();
return mWorkPath + DB_PATH_NAME;
}
public static void copyAc