Skip to content
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

Extraction fails if file already exist #5

Open
NameOfTheDragon opened this issue Sep 6, 2019 · 0 comments
Open

Extraction fails if file already exist #5

NameOfTheDragon opened this issue Sep 6, 2019 · 0 comments
Labels
bitbucket-migrated enhancement New feature or request
Milestone

Comments

@NameOfTheDragon
Copy link
Member

C:\Users\fernj\source\repos\ta.usno.extractor\BuildOutput\Debug\Extractor\TA.Usno.Extractor.exe --SourceDirectory "C:\Users\fernj\source\repos\ta.usno.extractor\BuildOutput\Debug\Extractor\TestData" --DestinationDirectory "C:\Users\fernj\source\repos\ta.usno.extractor\BuildOutput\Debug\Extractor\TestData\Test Output"
Zip Archive Bulk Extractor
Copyright 2019 Tigra Astronomy, all rights reserved.
Extractor running...
Source directory: C:\Users\fernj\source\repos\ta.usno.extractor\BuildOutput\Debug\Extractor\TestData
Destination directory: C:\Users\fernj\source\repos\ta.usno.extractor\BuildOutput\Debug\Extractor\TestData\Test Output
Delete archives: False
Extracting C:\Users\fernj\source\repos\ta.usno.extractor\BuildOutput\Debug\Extractor\TestData\145.zip, 5 entries
System.IO.IOException: The file 'C:\Users\fernj\source\repos\ta.usno.extractor\BuildOutput\Debug\Extractor\TestData\Test Output\145\b1451.cat' already exists.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.IO.Compression.ZipFileExtensions.ExtractToFile(ZipArchiveEntry source, String destinationFileName, Boolean overwrite)
at System.IO.Compression.ZipFileExtensions.ExtractRelativeToDirectory(ZipArchiveEntry source, String destinationDirectoryName, Boolean overwrite)
at System.IO.Compression.ZipFileExtensions.ExtractToDirectory(ZipArchive source, String destinationDirectoryName, Boolean overwriteFiles)
at System.IO.Compression.ZipFileExtensions.ExtractToDirectory(ZipArchive source, String destinationDirectoryName)
at TA.Usno.Extractor.ExtractorApplication.ExtractOne(String zipName, String destinationDirectory) in C:\Users\fernj\source\repos\ta.usno.extractor\TA.Usno.Extractor\ExtractorApplication.cs:line 125
at TA.Usno.Extractor.ExtractorApplication.ExtractOne(String zipName, String destinationDirectory) in C:\Users\fernj\source\repos\ta.usno.extractor\TA.Usno.Extractor\ExtractorApplication.cs:line 127

Originally created at 05/09/2019 22:28:44 by Fern Hughes as a bug with severity major.

@NameOfTheDragon NameOfTheDragon added this to the 2019-09-B milestone Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitbucket-migrated enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant