Reverse logic for directory creation