Added support for creating a directory