The Write temp files to folder failed, System. IO, IOException: file "C: \ Users \ Fred \ AppData \ Local \ temp \ Ng32B5s3ZjGOoo0KxkwWDQKK \ GlFlash_v1 17. Fl" already exists.
In the System. IO. __Error. WinIOError (Int32 errorCode, String maybeFullPath)
In the System. IO. FileStream. Init (String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
In the System. IO. FileStream.. Ctor (String path, FileMode mode, FileAccess access, FileShare share)
The System.IO.Com pression. ZipFileExtensions. ExtractToFile (ZipArchiveEntry source, the String destinationFileName, Boolean overwrite)
On the System.IO.Com pression. ZipFileExtensions. ExtractToDirectory (ZipArchive source, the String destinationDirectoryName)
The System.IO.Com pression. ZipFile. ExtractToDirectory (String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding)
CodePudding user response:
Public static void ExtractToDirectory (string sourceArchiveFileName, string destinationDirectoryName, bool overwriteFiles ).CodePudding user response:
You check, I remember that there is method can extract the ZipFile,Skip the specified file does not cover the source file,
CodePudding user response: