public static File getStudyFileDir(String authority, String studyId) { File file = new File(FileUtil.getStudyFileDir(), authority + File.separator + studyId.toUpperCase()); if (!file.exists()) { file.mkdirs(); } return file; }
public static File getStudyFileDir(Study study) { File file = new File( FileUtil.getStudyFileDir(), study.getAuthority() + File.separator + study.getStudyId()); if (!file.exists()) { file.mkdirs(); } return file; }