makeDirectory()

Creates a directory in the output folder based on the contents of the global folder variable.

When you call the function, a hierarchical directory structure will be made, based on the contents of the global folder variable. e.g. if folder contains a list of three strings, three directories will be made, one inside the next.

Example usage:

:-) makeDirectory();
There are 0 results
      

The above would not make any directories in the output folder. In the following example, we have added a string to the global folder variable, e.g.

:-) folder.addLast( "directory" );
There are 0 results
:-) makeDirectory();
There are 0 results
      

The above example would have made a single directory in the output folder, called "directory". Now for a final example, we add another string to the global folder variable, e.g.

:-) folder.addLast( "directory" );
There are 0 results
:-) folder.addLast( "inside" );
There are 0 results
:-) makeDirectory();
There are 0 results
      

The above example would have made a single directory in the output folder, called "directory". This "directory" would contain another folder, called "inside".