Add create_file_as_directory method