I need help with a function to create a 2 level directory for the following situations:
- The desired sub-directory exists in the parent directory, do nothing.
- Parent directory exists, sub-directory does not exist. Create only the sub-directory.
- Neither parent directory, nor the sub-directory exists, First create parent directory, then sub-directory.
- If Any of the directory was not created successfully, return FALSE.
Thanks for the help.
mv
, which simply ignores existing paths – Flexion