fileutils

Simple tools to work with files, paths etc.

copy_files(source_path, dest_path, verbose=False)[source]

“Copy all files from one folder to another.

delete_files(files_list)[source]

Delete the files at the file paths in the list.

get_names_from_path(fontpath)[source]

Parse underscore(or hyphen)-separated font file names into family and style names.

get_parameters_from_path(fontpath)[source]

Get individual parameters from the path of a font file.

get_parameters_from_style(style_name)[source]

Get individual parameters from the style name of a font.

read_names_list_from_file(filepath)[source]

Read pairs of glyph names from a simple text file.

rename_file(filepath, new_name, overwrite=True, delete=True)[source]

Rename a file or folder, and save it with the new name.

walk(folder, extension)[source]

A simple non-recursive walk function to collect files with a given extension.

Previous topic

encoding

Next topic

fontinfo

This Page