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.
Packing with subdirectories? help please?
Packing with subdirectories? help please?
--Aszid--
Making crazy people sane, starting tomorrow.
Making crazy people sane, starting tomorrow.
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
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
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.
Making crazy people sane, starting tomorrow.

