FileDownloader icon indicating copy to clipboard operation
FileDownloader copied to clipboard

怎么替换下载

Open zhangrui49 opened this issue 9 years ago • 1 comments

相同的文件名就会认为是同一个文件,自动下载成功(其实不是同一个),怎么设置替换下载

zhangrui49 avatar Mar 01 '17 01:03 zhangrui49

使用BaseDownloadTask#setForceReDownload(true)即可。

/**
 * Force re-downloading the file regardless the target file is exist.
 *
 * @param isForceReDownload If set to true, will not check whether the target file is exist.
 *                          <p>
 *                          Default: {@code false}.
 */
BaseDownloadTask setForceReDownload(final boolean isForceReDownload);

Jacksgong avatar Mar 10 '17 09:03 Jacksgong