def ensure_directory_containing(path):
 ensure_directory(os.path.dirname(path))

def ensure_directory_containing ( path ) : ensure_directory ( os . path . dirname ( path ) )
ensure that the directory containing path exists .