Hi
This is related to 3 threads:
http://www.daniweb.com/software-development/java/threads/438729/recursive-ftp-listingmakingcreatingetc-access
http://www.daniweb.com/software-development/java/threads/439941/recursive-ftp-listingmakingcreatingetc-access...-part-2
http://www.daniweb.com/software-development/java/threads/442142/recursive-ftp-listingmakingcreatingetc-access...-part-3
At first, I had NO clue where to even start. Over a couple of weeks, Ive slowly but surely started to make the process correctly but Im stumpped so (for the third time) ive thought of rewriting everything from sratch.
I only have two functions right now: createfolder and insertfile. Nothing else.
My requirements are the following:
Random number is a number common to process A and B
My main path is C:/ we base everything off that.
In C:/, we see if a folder called Webfolder exists. If it does, we enter it. If it doesnt, we created it.
Once it is created and found, we enter it.
Process A: Counter is a local variable that equals 1. It is local to Process A. I make a folder with the current date and "" and the counter ONLY if there are less than 44 file inside this webfolder. If there is more than 44 files, I add one to a counter and then make a folder with the current date and the "" and the counter as long as it has less than 44 files inside. If not process A is repeated until counter is 9.
Once Process A is completed, I change to that that current date and "_" and the counter folder and inside make a folder with a random number.
Next, we have to insert some files into these folders. I once again start my path off C:/ then enter Webfolder (Webfolder at this point always exists because I call the folder creating function ALWAYS before inserting a file).
Process B: Counter is a local variable that equals 1. It is local to Process B. I search for a folder with the current date and "_" and the counter. If I find it, I search if it has less than 44 files inside. If it does have more 44, I add to counter plus one to look for the next folder which does (or doesnt) have more than 44 files.
If it doesnt, I insert a random numer BMP inside of it.
Also if it doesnt, I create a folder with the name of random number, same as Process A. I go into that folder and create whatever file I pass to the function.
Basically, I believe that it is.
Any help, thank you very much.