adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.26k stars 480 forks source link

Suggestion: Work with open files #839

Open njtaz76 opened 4 months ago

njtaz76 commented 4 months ago

Hi,

Is there a way to use SharpCompress and have it add files that are currently open by another application? I'm trying to create a log uploader, but it will fail if a file is currently open by another process. These are text files.

Thanks chris

adamhathcock commented 4 months ago

use a Stream and File.Open with different FileAccess settings. This isn't unique to sharpcompress