Posted 11 May 2014 - 05:53 PM
Hello.
I am creating an installer, for an OS.
The problem is, the method I am using requires me to use a function like:
get(string repoFile, string saveTo)
So, for example, if I wanted to get a file called EpicTest/Test off a repo and put it in EpicTest, I would use:
get("EpicTest/Test","EpicTest/Test")
If it didn't exist, I would add mkdir("EpicTest") before the function. (person-made functions rule!)
How do I get a system that can download a whole folder at a time?
For example, instead of typing
get("epic/Test1","Test1")
get("epic/Test2","Test2")
to get those two files, to get a whole folder, I could type
getFolder("epic","epic")
The first "epic" is the repo folder.
The second one is the saving directory.
I am creating an installer, for an OS.
The problem is, the method I am using requires me to use a function like:
get(string repoFile, string saveTo)
So, for example, if I wanted to get a file called EpicTest/Test off a repo and put it in EpicTest, I would use:
get("EpicTest/Test","EpicTest/Test")
If it didn't exist, I would add mkdir("EpicTest") before the function. (person-made functions rule!)
How do I get a system that can download a whole folder at a time?
For example, instead of typing
get("epic/Test1","Test1")
get("epic/Test2","Test2")
to get those two files, to get a whole folder, I could type
getFolder("epic","epic")
The first "epic" is the repo folder.
The second one is the saving directory.