-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need file size sync also #23
Comments
Due to network or other reason if video file downloaded partially its not updated next time and video file remain corrupt until delete |
Hi @HaiderAli008 This should be possible. But there is the possibility that this could delete files that are newer on the destination even though they are newer. Is this what you intend? |
At cloud storage side I need to replace file with some changes that is not synch with local folder because of file already exist and also some time internet issue some file does't download properly and it remain corrupt. |
Hi @HaiderAli008 |
See PR #33 // resume failed download
func resume(_ download: S3FileTransferManager.DownloadOperation) async {
do {
try await self.s3FileTransfer.resume(download: download)
} catch {
if let error = error as? S3FileTransferManager.Error, case .downloadFailed(_, let download) = error {
await self.resume(download)
}
}
}
do {
try await self.s3FileTransfer.sync(from: self.s3Folder, to: self.localFolder, delete: true)
} catch {
if let error = error as? S3FileTransferManager.Error, case .downloadFailed(_, let download) = error {
await self.resume(download)
}
} |
Closing as I've had no response |
Can you please add in sync feature if the size of file change on amazon then local file also change according to ?
The text was updated successfully, but these errors were encountered: