zip

Aggregating built artifacts in Teamcity to a single zip

Aim: Set up an ant/cmd script that will package the artifacts from several builds into a single zip. I plan to do this by setting up a final build configuration that will have a dependency on those several projects. So all my build configurations build successfully and produce build artifacts on the Build Server @.BuildServer\system\art...

How to create a zip archive using Ruby on Rails?

I have a bunch of files in a directory. I want to zip some of them together into a zip archive. I can see there are various solutions for doing so. I could use a gem such as rubyzip or run exec and just use a command line tool. This is going to impact an important part of the system I'm working on so I'd love to have some feedback and...

Unpack/extract zip file with PHP without relying on any extension

Is there any way to unpack or extract a zip file with PHP that does not rely on any installed extension? Has anyone written a class or something that can handle it? Alternatively, is there a solution that uses an extension that is relatively commonly installed on most servers? I need this to work on as many different servers that I hav...

unzip a file in flex?

help me some one can we unzip a file flex and we can maintain same directory structure. ...

Creating a ZIP archive from a Cocoa application

Are there Objective-C classes that are equivalent to the ones contained in the Java package java.util.zip? Is to execute a CLI command the only alternative? ...

Alternatives to SharpZipLib for use with .Net C# application

Hi all, Does anyone have recommendations for an alternative library to SharpZipLib for full featured ZIP file handling using C#? The reason we're looking for an alternative is the licensing. Despite the added clause to that projects GPL license, it still doesn't fly with our legal requirements. Most other open source licenses will do...

Reading the same file multiple times in Python

Hello, I need to download a zip archive of text files, dispatch each text file in the archive to other handlers for processing, and finally write the unzipped text file to disk. I have the following code. It uses multiple open/close on the same file, which does not seem elegant. How do I make it more elegant and efficient? zipped = ur...

Memory Management and ZipArchive class in PHP

I have a PHP script that uses adds a lot of small files into the same zip arhchive file using PHP's ZipArchive class. Recently script started to run out of memory, although the archive is large, but I add only small files one by one, safely re-opening archive each time I need to add a file. The initial archive file grew little by littl...

VBA Zip File error

I am using code similar to the below to add some files to a zip folder: Set oApp = CreateObject("Shell.Application") oApp.Namespace(CVar(strDest)).CopyHere CVar(strSource) This works fine most of the time, but sometimes I get an error: "(Compressed (zipped) Folders Error) Cannot create output file". This error is raised asynchronousl...

How to Build The icsharpcode for .net compact framework

Hi all.. i googled lot, i am not getting the way to build the icsharp source code for .net compact framework.. here is the link i,e http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx were i am able to download source code, but i am able to build for .net framework not for compact framework 3.5.. i checked the configuration...

Best Way to copy a Zip File via Java

After some research: How to create a Zip File and some google research i came up with this java function: static void copyFile(File zipFile, File newFile) throws IOException { ZipFile zipSrc = new ZipFile(zipFile); ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(newFile)); Enumeration srcEntries = zipSrc.e...

SharpZipLib - progress through fileS during extract

Hi, this has to be really easy, and it certainly seems to be a very frequently asked question, but I can't for the life of me find a 'straightforward' answer. I want to create a ProgressBar that shows a Zip file being extracted by SharpZipLib. The FastZip and FastZipEvents classes give progress on individual files but not on position w...

Air - Unzipping file

Currently I am using nochump library for unzipping files. But its very slow(around 30 seconds for 2 mb file). Is there any other libraries available which are fast. Or is thaere any better way to unzip by communicating with os? I have used FZip, but it wont work in mac. So cant use it. ...

PHP method to transfer whole directory using FTP?

I've been trying to come up with a way to build an automatic update system for a cms that I'm building that will potentially be installed on numerous servers (likely with different configurations). What I've come up with is to keep a current version uploaded to my server in a predetermined directory. Then have the distributed systems che...

Parsing an html file and adding found images to a zip file

I am trying to parse an html for all its img tags, download all the images pointed to by src, and then add those files to a zip file. I would prefer to do all this in memory since I can guarantee there won't be that many images. Assume the images variable is already populated from parsing the html. What I need help with is getting the i...

Have a workaround for the 1,000 file limit in a directory on windows mobile 5?

I need to download more than 1,000 files into a windows mobile 5 directory located on the storage card. If i copy the files onto the storage card via my desktop there is no problem. But when i try to download the files from the handheld device I get a disk full error, even though there is plenty of room due to the 1,000 file limit. Has ...

What characters are forbidden in Windows and Linux directory names?

I know that / is illegal in Linux, and the following are illegal in Windows (I think): * . " / \ [ ] : ; | = , What else am I missing? I need a comprehensive guide, however, and one that takes into account double-byte characters. Linking to outside resources is fine with me. I need to first create a directory on the filesystem usin...

File names with Japanese characters turn to garbage when written to a zip file using java.util.zip.*

I have a directory with a name that contains Japanese characters, and I need to use the zip utils in java.util.zip to write it to a zip file. Writing the zip file succeeds, but when I open the resulting zip file with either Windows' built-in compressed file utility or 7-Zip, the directory with Japanese characters in the name appears as ...

Combine multiple files and folders into one file using PHP

I have designed an online editor with which a user can create files and folders on the server. Suppose a user creates the below files and folders. /docs/abc.txt /docs/def.txt /docs/work/assignment.txt I want to write a PHP script to combine the files into a single ZIP file so that it makes it easier for the user to download them with...

how to read a password protected zip file in c#

hi suggest me to read password protected zip file using c# ...