Packing with subdirectories? help please?

Just starting out? Need help? Post your questions and find answers here.
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

Packing with subdirectories? help please?

Post 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.
--Aszid--

Making crazy people sane, starting tomorrow.
Jose
User
User
Posts: 34
Joined: Sat Apr 26, 2003 9:20 pm

Post 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
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

Post 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.
--Aszid--

Making crazy people sane, starting tomorrow.
Post Reply