/** * Get the path to where the program will save this BitTorrent download when it's done. * * @param The path in a Java File object, like "C:\Documents and Settings\Kevin\Shared\File * Name.ext" */ public File getSaveFile() { // Get the path from the BTMetaInfo object return _info.getCompleteFile(); }
/** * Get the path of this BitTorrent download. While we're still getting the torrent, returns a path * like "C:\Documents and Settings\Kevin\Incomplete\File Name.ext". After it's done, returns a * path like "C:\Documents and Settings\Kevin\Shared\File Name.ext". * * @return A Java File object with the path */ public File getFile() { // Return the path in the "Saved" or "Incomplete" folder if (_torrent.isComplete()) return _info.getCompleteFile(); return _info.getBaseFile(); }