Giter VIP home page Giter VIP logo

stefh / uzipdotnet Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 2.0 191 KB

This project will give you the tools needed to compress and decompress files using the Deflate method of compression, and to read and write standard Zip files. The source is copied from http://www.codeproject.com/Articles/359758/Processing-Standard-Zip-Files-with-Csharp-compress. The original license is CPOL by the author is Uzi Granot.

License: GNU Lesser General Public License v3.0

C# 99.97% Batchfile 0.03%

uzipdotnet's Introduction

UZipDotNet

Build status

This project will give you the tools needed to compress and decompress files using the Deflate method of compression, and to read and write standard Zip files.

Info:

I've updated the code with support for more frameworks:

  • net20
  • net35
  • net40
  • net45 and higher
  • netstandard1.3
  • netstandard2.0

And it's tested in Linux.

uzipdotnet's People

Contributors

stefh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sacristan relaxar

uzipdotnet's Issues

Decompress (InflateZipFile) problem

world_20150824203931.zip

//built this file with -> http://hastebin.com/ilewapacur.avrasm

Exception: File directory signature error
UZipDotNet.InflateZipFile.ReadZipFileDirectory () (at Assets/Voxel Engine/Utils/UZipDotNet/InflateZipFile.cs:403)
UZipDotNet.InflateZipFile.OpenZipFile (System.String readFileName) (at Assets/Voxel Engine/Utils/UZipDotNet/InflateZipFile.cs:110)

test.zip

//same files archived with 7zip

Exception: File directory signature error
UZipDotNet.InflateZipFile.ReadZipFileDirectory () (at Assets/Voxel Engine/Utils/UZipDotNet/InflateZipFile.cs:403)
UZipDotNet.InflateZipFile.OpenZipFile (System.String readFileName) (at Assets/Voxel Engine/Utils/UZipDotNet/InflateZipFile.cs:110)

fish_config-master.zip

//downloaded repository from github as zip (same problem)

Exception: File directory signature error
UZipDotNet.InflateZipFile.ReadZipFileDirectory () (at Assets/Voxel Engine/Utils/UZipDotNet/InflateZipFile.cs:403)
UZipDotNet.InflateZipFile.OpenZipFile (System.String readFileName) (at Assets/Voxel Engine/Utils/UZipDotNet/InflateZipFile.cs:110)

Same issue persists when using demo code sample -> https://github.com/StefH/UZipDotNet/blob/master/UZipDotNet/src/UZipDotNet.ConsoleApp/Program.cs

When changing path - same issue.

Basically cant get past using (var inf = new UZipDotNet.InflateZipFile(@filepath))

System:
OS Name Microsoft Windows 10 Pro
Version 10.0.10240 Build 10240

Replacing Close with Dispose

According to the Microsoft documentation the Close method calls the Dispose method. The question is what is the point of making this substitution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.