How can we create a directory in a path? Creating file is working fine, but unable to create a directory.