Path¶
-
class
ctapipe.core.traits.
Path
(default_value=traitlets.Undefined, exists=None, directory_ok=True, file_ok=True, **kwargs)[source]¶ Bases:
traitlets.TraitType
A path Trait for input/output files.
- Attributes
- exists: boolean or None
If True, path must exist, if False path must not exist
- directory_ok: boolean
If False, path must not be a directory
- file_ok: boolean
If False, path must not be a file
Methods Summary
info
()validate
(obj, value)Methods Documentation