Replace createDirectoryHierarchy with createDirectoryIfMissing True