Added get_directory_name and mkdir.