I tried this last night and to my dismay it created the directories as absolute to the root instead of relative of the parent Category. For ex, if the Category was "Cars/Volkswagen" and Directory="vw", it created the physical directory as "/vw". Logically, I assumed that it would have created the directory relative to it's parent, e.g. "/Cars/vw". Imagine the nightmare if you had 100 subcats to "Cars" and decided to change "Cars" to "Automobiles". You would have to edit the Directory field for 100 diff records. Sure, you could use SQL, but the point is that the potential for error is tremendous.
If I had designed it, it would work as follows:
- if Directory IS NULL => create the physical dir in the Normal manner, i.e. use the Category Name and convert space to "_".
- if Directory IS NOT NULL => use the value for Directory, the path is relative to the parent Category
Example
1. Category = "Cars", Directory=NULL ==> /Cars/
2. Category = "Cars/Volkswagen", Directory="vw" ==> /Cars/vw/
3. Category = "Cars/Dodge Trucks", Directory=NULL ==> /Cars/Dodge_Trucks/
If you wanted to make the directory absolute to the root, you could specify "/" as the first char, e.g. "/vw"