def create_tree(path, filenames=None, symlinks=None):
    'Create directory structure and files.'
    for filename in (filenames or []):
        create_file(os.path.join(path, filename))
    for symlink in (symlinks or []):
        link_name = os.path.join(path, symlink['link_name'])
        os.symlink(symlink['target'], link_name)
Create directory structure and files.
def create_tree(path, filenames=None, symlinks=None):
    
    for filename in (filenames or []):
        create_file(os.path.join(path, filename))
    for symlink in (symlinks or []):
        link_name = os.path.join(path, symlink['link_name'])
        os.symlink(symlink['target'], link_name)