read the list of files contained in a zip archive
string (zip archive filename)
The Contents command reads the index of a zip file archive and returns a list of strings representing the names of the files contained in that archive.
The list returned does not include the zip file name. To read each member, L[i] returned in the contents list, use FileTools:-Compressed:-ReadFile( L[i] in zipfilename, options ).
This command only works on zip files. Files in gzip format do not contain sub-files.
The filename option must be a string, not an open file handle, and not a subfile in zipfile member reference.
FileTools[Compressed][WriteFile]("first" in zipfile, "a 1st file");
FileTools[Compressed][WriteFile]("second" in zipfile, "a 2nd file");
[seq( FileTools:-Compressed:-ReadFile(F in zipfile, string), F in L)];
a 1st file,a 2nd file
The FileTools[Compressed][Contents] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)