Added function for creating directories in the object store.