Module i18n_build::util[][src]

Utility functions for use with the i18n_build library.

Functions

check_path_exists

Check that the given path exists, if it doesn’t then throw a PathError.

create_dir_all_if_not_exists

Create any of the directories in the specified path if they don’t already exist.

remove_file_if_exists

Remove a file if it exists, otherwise return a PathError#CannotDelete.

remove_file_or_error

Remove a file, or return a PathError#CannotDelete if unable to.

rename_file

Rename a file, or return a PathError#CannotRename if unable to.

run_command_and_check_success

Run the specified command, check that it’s output was reported as successful.