Azure / azure-storage-net-data-movement

Azure Storage Data Movement Library for .Net
MIT License
275 stars 133 forks source link

REL-610971 not valid file paths are reported as a skipped file when i… #286

Closed mmkowal-rel closed 3 years ago

mmkowal-rel commented 3 years ago

Exposed IsPathValidAsync callback through the TransferContext so customer I able to inject own code to perform validation. Given callback is executed by SyncTransferController which is responsible for processing each chunk of file being transferred. Given callback is executed only when set. When it is null no execution it means that no validation at all Only source path is being validated. When IsPathValidAsync returns true given chunk of data is being processed otherwise TransferInvalidPathException is thrown and additionally total number of skipped files is incremented. Given path is reported through FileSkipped event

ghost commented 3 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

:x: mmkowal-rel sign now
You have signed the CLA already but the status is still pending? Let us recheck it.