|
I have a .zip archive containing several directories. Using the rubyzip gem I would like to reach into the .zip archive, copy a specified directory (and its contents) and move the directory into a second .zip archive.
Ideally I would not have to extract...
Started by rswolff on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Theoretically what you ....
This is a bit of a brute force method (and may or may not work for your application), but you could copy the entire first zip file and then use rubyzip methods to delete everything but the target directory from the copied file .
|
|
I'm using Perl's Archive::Tar module. It preserves the file permissions but doesn't preserve the sticky bit. At the other end where I extract the archive, all the sticky bits are gone. I think UNIX/LINUX operating system stores these sticky bits somewhere...
Started by ram on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It may be....
From a brief glance, it appears that
$Archive::Tar::CHMOD = 1;
should do what you want, although the documentation claims that the above setting is the default.
To take a look at the Archive::Tar documentation for the details.
|
|
Hi,
is it possible to get a File or URI object for a file inside an archive with Java? (zip or jar archive)
Thanks Hemeroc.
Started by Hemeroc on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The jar: protocol is a way to build a URI to a resource in a JAR archive:
jar:http.
|
Ask your Facebook Friends
|
So I have a git repository on my local computer that I want to archive (zip is fine) and upload to my server. Once the file has been uploaded to the server, I will extract the archive. I don't need any of the git information, so I think I need to use ...
Answer Snippets (Read the full thread at superuser):
Any one of the following will work:
git archive --output=../_toDeploy/ArchiveName.zip master git archive -o ../_toDeploy/ArchiveName.zip master
To add a subdirectory inside the archive,
git archive --output=../_toDeploy/ArchiveName....
|
|
Hi all,
Does anyone know if there are any SMS archive solution out there? The idea is to archive your sms message from your phone to a central location.
Started by Herman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If its just one phone then there are usb keys / software packages that can read and archive data.
|
|
I need to allow users to upload a zip file via a web form. The server is running Linux with an Apache web server. Are there advantages to using a module like Archive::Zip to extract this archive or should I just execute a system call to unzip with backticks...
Started by cowgod on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To the Archive::Zip documentation you'd be better off using Archive::Extract :
If you are just going to be extracting zips (and/or other archives) you are recommended to look at using Archive::Extract instead, as it is much....
|
|
I've been using Gmail for years, and have never bothered to archive things. My inbox has a ridiculous number of messages in it.
I'd like to archive all inbox messages that I have already read. What's the fastest way to do this?
Started by GorillaSandwich on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
After I search this search."
Bingo! I can archive them all!.
It turns out that a new feature solves this problem for me .
Click archive.
Click that.
|
|
How can I create a zip archive of a directory structure in Python?
Started by Martha Yi on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
As others have pointed out,....
You may also want os.walk( ) to index the directory structure .
You probably want to look at the zipfile module; there's documentation at http://docs.python.org/library/zipfile.html .
Using the base Python zipfile module.
|
|
Is it possible to create a zip archive using PowerShell?
Thank you.
Started by Valentin Vasilyev on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
This is really obscure but....
Not out of the box but you can use SharpZipLib with PowerShell
If you head on over to CodePlex and grab the PowerShell Community Extensions , you can use their write-zip cmdlet .
Here's one example of how you could do this.
|
|
Is there a way to view via code the iphone sms archive and sort them in an app?
Started by omri on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Also....
Each app is sandboxed to prevent it from reading data from other apps .
I would imagine that on a jailbroken phone you could read the DB, but using the normal SDK this is impossible .
In short - no, SDK does not provide access to this information .
|