We can easily set global path validation using on_path_not_exists and on_validate_path functions.

Check path correctness

In some cases, path may even exists, being in the same time unsuitable for our purposes. on_validate_path function was created exactly to handle such cases.

options(old.options)