Skip to content

Commit 949edb8

Browse files
committed
Added Files View menu option to export selected files
1 parent da365f2 commit 949edb8

6 files changed

Lines changed: 333 additions & 122 deletions

File tree

core/src/com/biglybt/core/download/DownloadManager.java

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,10 +653,19 @@ default void setTorrentSaveDir(String sPath) {
653653

654654
throws DownloadManagerException;
655655

656+
/**
657+
*
658+
* @param parent_dir
659+
* @param selected_files files to copy, null->all
660+
* @param progress
661+
* @throws DownloadManagerException
662+
*/
663+
656664
public void
657665
copyDataFiles(
658-
File parent_dir,
659-
ProgressCallback progress )
666+
File parent_dir,
667+
List<DiskManagerFileInfo> selected_files,
668+
ProgressCallback progress )
660669

661670
throws DownloadManagerException;
662671

@@ -930,7 +939,24 @@ default void setTorrentSaveDir(String sPath) {
930939
canExportDownload();
931940

932941
public void
933-
exportDownload( File parent_dir ) throws DownloadManagerException;
942+
exportDownload(
943+
File parent_dir )
944+
945+
throws DownloadManagerException;
946+
947+
/**
948+
* Copys the complete files, ignores incomplete files
949+
* @param parent_dir
950+
* @param files
951+
* @throws DownloadManagerException
952+
*/
953+
954+
public void
955+
exportFiles(
956+
File parent_dir,
957+
List<DiskManagerFileInfo> files )
958+
959+
throws DownloadManagerException;
934960

935961
public default void
936962
fireGlobalManagerEvent(

0 commit comments

Comments
 (0)