Can System.IO.Compression assembly create zip files of some specific files like .txt, .bak or it simply create zip file of directory? I am not being able to craete zip files of specific files but rather only the zip file of directory is getting created
You can create a ZipArchive object and then add individual files (including just one) by creating ZipArchiveEntry objects.
As a convenience, the ZipFileExtensions class has an CreateEntryFromFile method.
Related
Is where a way to read/write multiple files in UIDocumentBrowserViewController.
Recently, I know UIDocumentBrowserViewController as rootViewController can read files. But how to write files.
For example, i want to read zip file and then unzip it to current folder.
I need to save multiple files as one custom file, which then can be exported and imported into the iOS app. The files that go into this package are PDFs and TXTs.
A .pages file on the Mac is pretty much exactly what I want, it is a package which contains the original files, but acts as a custom (Pages) file.
I looked into NSFileWrapper, NSKeyedArchiver and NSFileManager, but I can't find the right way to solve this problem. How can I export multiple files into one package on iOS, that I can save with my own file extension and where I can easily get the original files out when importing?
How can I manage files and directories with ACE library? I tried to delete files with ACE_OS::unlink, but it didn't work. I also failed to create directories by using ACE_OS::mkdir. I need to find a way to create and delete directories, delete files and move files from one directory to another
See ACE_wrappers/tests/OS_Test.cpp for code how to create, move, and delete files. Use ACE_OS::mkdir/rmdir to create/remove directories. See ACE_wrappers/tests/Dirent_Test.cpp for code how to retrieve the content of a directory
I've got this situation where I need to remove a specific file from a ZIP archive. Within the application all handling of ZIP files is done using JclCompression. I was wondering if any of you know how to remove a specific file from a ZIP archive using JclCompression? (I couldn't find it)
So, I just accidentally ran into the solution:
Besides the TJclZipCompressionArchive and TJclDecompressionArchive the JclCompression library also provides a TJclZipUpdateArchive class. This class contains a method to remove a file from the archive.
zip.RemoveItem(PackedName);
Suppose I have a folder with many files. I want to have a .gz version of each file (not a tar.gz with all files). How do I do that with Ant? Ant's doesn't accept a list of files, only operates on one. So how do I repeat this for all files, with a certain extension, in a directory?
Please take a look at a this question.