IO: creating dirs/files...




at work I build rather large websites from scratch...

I figured, just for the hell of it, why not write a java class that creates the dirs and the files that go inside the dirs??? (this would be locally, I develop in Weblogic localhost..) so am talking about a stand-alone class...

first thing I notice in API (1.4) is that mkdir() method doesn't take any params, how do you tell it what to name the dir??

I would like to create for example:

dir 'one', dir 'two', dir 'three', etc..

and inside each one an index.jsp file and other files (and subdirs and files inside the subdirs..) what would be best approach here.. (since I build rather large sites this is not a class I would run all the time, so don't mind hard-coding names of dirs/files in class, then change them for next project (but names of dirs and files would remain the same for the most part for most projects..)

thank you very much...



.



Relevant Pages

  • usage of /etc/group
    ... I want to allow a html author rwx access to /usr/local/www and all ... subdirs off it, ... public_html dirs), and making a special group for this user seemed the ...
    (comp.unix.bsd.freebsd.misc)
  • Re: cFileSearch by Ulrich Korndoerfer
    ... In your loop you use an index i to adress an dir entry in the DirsTree view of the Dirs list ), but then to return the dirs path you use the same index to address a directory in the Dirs list ). ... Public Function GetDirPath(ByVal DirIdx As Long, ... However the order the directories appear in the Dirs list is *not* reflecting the hierarchical order the dirs have in your filesystem, because the search algorithm first collects all subdirs in a dir, then collects the subdirs of the subdirs. ...
    (microsoft.public.vb.general.discussion)
  • C: Getting all filenames and attributes from a pattern
    ... What is the *fastest* way to get all filenames (dirs included) ... and attributes, recursively (I mean including all subdirs), ... given a pattern? ...
    (comp.os.linux.development.apps)
  • Re: opendir mydir/??/??/??
    ... I have a group of dirs and subdirs that look like mydir/00/00/00, ... that I can do an opendir like: ... Good luck, ...
    (comp.lang.perl.misc)
  • Re: is there way to print all groups and the permissions they have on all directories/files?
    ... >different dirs and subdirs. ... >is there a way to print them all out with one command ... Prev by Date: ...
    (microsoft.public.win2000.cmdprompt.admin)