コード例 #1
0
  /**
   * Copy all loaded files into installation folder.
   *
   * @return <code>true</code> if files are copied; <code>false</code> otherwise
   */
  private boolean moveDownloadedContentToInstallationFolder() {
    boolean isMoved = false;
    FilesUtility.ensureDirectoryExists(filesStructure.installationFolder());
    try {
      FilesUtility.copy(filesStructure.downloadFolder(), filesStructure.installationFolder());
      isMoved = true;
    } catch (IOException e) {
      e.printStackTrace();
    }

    return isMoved;
  }