OwlCore.Storage
OwlCore.Storage copied to clipboard
Add progress reporting where appropriate
Progress reporting is a good call out. Generally the library is built so that progress reporting can be implemented application-side during an operation (e.g. navigating directories, moving things around, stream transfers). However, there's a few long-running extension methods where we could consider an IProgress
parameter, such as Copy and Move.
Here is the inbox implementation for copying a file into a folder. Presumably, dotnet should supply us with an overload that takes an IProgress
in Stream.CopyToAsync
, but that doesn't appear to be the case. We'd need to build this ourselves or use one of the many versions that others have built.
Originally posted by @Arlodotexe in https://github.com/Arlodotexe/OwlCore.Storage/issues/12#issuecomment-2160903901