Package org.gudy.azureus2.core3.download

Examples of org.gudy.azureus2.core3.download.DownloadManager.filesExist()


         *    1) We are currently set to allow the "Change Data Directory" option, and
         *    2) We've only got one item selected - otherwise, we may potentially end up checking massive
         *       amounts of files across multiple torrents before we generate a menu.
         */
        if (bChangeDir && dms.length == 1) {
          bChangeDir = dm.isDataAlreadyAllocated() && !dm.filesExist( true );
        }

        boolean scan = dm.getDownloadState().getFlag(DownloadManagerState.FLAG_SCAN_INCOMPLETE_PIECES);

        // include DND files in incomplete stat, since a recheck may
View Full Code Here


   
    final MenuItem itemCheckFilesExist = new MenuItem(menuFiles, SWT.PUSH);
    Messages.setLanguageText(itemCheckFilesExist, "MyTorrentsView.menu.checkfilesexist");
    itemCheckFilesExist.addListener(SWT.Selection, new DMTask(dms) {
      public void run(DownloadManager dm) {
        dm.filesExist( true );
      }
    });

    final MenuItem itemFileRescan = new MenuItem(menuFiles, SWT.CHECK);
    Messages.setLanguageText(itemFileRescan, "MyTorrentsView.menu.rescanfile");
View Full Code Here

      for (int i = 0; i < dms.length; i++) {
        DownloadManager dm = dms[i];
       
        int state = dm.getState();
        if (state == DownloadManager.STATE_STOPPED) {
          if (!dm.filesExist(true)) {
            state = DownloadManager.STATE_ERROR;
          }
        }

        if (state == DownloadManager.STATE_ERROR) {
View Full Code Here

        if (state == DownloadManager.STATE_ERROR) {
         
          dm.setTorrentSaveDir(sSavePath);
         
          boolean found = dm.filesExist(true);
          if (!found && dm.getTorrent() != null
              && !dm.getTorrent().isSimpleTorrent()) {
            String parentPath = fSavePath.getParent();
            if (parentPath != null) {
              dm.setTorrentSaveDir(parentPath);
View Full Code Here

          if (!found && dm.getTorrent() != null
              && !dm.getTorrent().isSimpleTorrent()) {
            String parentPath = fSavePath.getParent();
            if (parentPath != null) {
              dm.setTorrentSaveDir(parentPath);
              found = dm.filesExist(true);
              if (!found) {
                dm.setTorrentSaveDir(sSavePath);
              }
            }
          }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.