예제 #1
0
  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;
  }
예제 #2
0
  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;
  }