Compression and Decompression of multiple files
    Rob Cozens 
    rcozens at pon.net
       
    Sat Feb  7 10:43:45 EST 2004
    
    
  
>Has anyone got any ideas as to how revolution could compress the files
>and subfolders of a folder?
Hi Thomas,
Richard Gaskin, Sarah Richert, yours truly, and others have gotten as 
far as you; but no one I know of has taken the next step: combining 
individual file compression logic with the recursive logic of the 
Transcript Directory Walker.  Sarah & I have done some preliminary 
work to combine her drag-and-drop compression utility, SDB Tools 
compression utility (which, besides simple compression, includes 
logic to default the file type of Windows & Unix stacks for seamless 
transfer to Mac O/S platforms, and prevent the user from 
decompressing a file with a Mac O/S resource fork on a non-Mac 
platform); but it's a VERY low priority for both of us at the moment.
The design I have in mind would create a list of all files & their 
folder locations via a tweaked Directory Walker command, compress 
each file individually, append the individual compressed files, and 
append an index of the archive listing each file's size & byte offset 
from the beginning of the archive file.
Simple decompression would simply decompress the entire contents of 
the folder.  A more elegant solution would display the archive index 
and allow the user to select individual files for decompression
-- 
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.net/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
    
    
More information about the use-livecode
mailing list