FileDownloader
FileDownloader copied to clipboard
怎么替换下载
相同的文件名就会认为是同一个文件,自动下载成功(其实不是同一个),怎么设置替换下载
使用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);