Page 1 of 1

Packing with subdirectories? help please?

Posted: Thu May 01, 2003 8:46 pm
by aszid
well, i'm new to PB (just registered yesterday), and i'm not sure if there's an easy answer to this question. (that will likely make me feel stupid)

I want to make a program that can pack folders and subfolders as well as their contents, and also a program that would unpack them while keeping the file structure in-tact. i've started on a preliminary method of doing this, but it's pretty sloppy, and for each level of subfolders i'm using a new loop to retrieve the filenames. this is part of a bigger project, making an auto-update program that can retrieve updates from the web. this is the last of the features i want to add into the program. I already have the functionality for downloading the files, and the rest is just small stuff, and UI work.

thanks in advance.

Posted: Fri May 02, 2003 3:34 pm
by Jose
Welcome aszid to PB.

Firstly try searching the forum for the following words; "recursive folders"

I just did and found this one, have a look at the code for scanning folders and files, that should point you in the right direction;

viewtopic.php?t=3882

Hope that helps

Posted: Sat May 03, 2003 12:28 am
by aszid
Thanks for pointing me in the right direction, my auto-patching program is now complete... i also have some packing/unpacking procedures i'm going to finish off and add to the tips & tricks section. I'd imagine that others could find them pretty usefull too.