PathType¶
-
class
tollan.utils.cli.path_type.PathType(exists=True, type_='file')[source]¶ Bases:
objectA class that facilitates path-like argument for
Argument- Parameters
- existsbool or None
If True or False, ensure the path exists or not exists.
- type_str, callable, optional
The type of the path, can be one of “file”, “dir”, “symlink” or a predicate function. It set, the type is enforced.
Methods Summary
__call__(arg)Call self as a function.
Methods Documentation