Autodiscover
Auto-discovery of a .copconignore and .copcontarget file.
This module provides functionality to walk upward from a given directory in search of a .copconignore or .copcontarget file. If found, the path to these files is returned. Otherwise, None is returned.
- copcon.core.autodiscover.discover_copconignore(directory)
Attempt to walk upward from ‘directory’ to find a .copconignore file. Returns the file’s Path if discovered, or None if not found.
- Return type:
Optional
[Path
]
- copcon.core.autodiscover.discover_copcontarget(directory)
Attempt to walk upward from ‘directory’ to find a .copcontarget file. Returns the file’s Path if discovered, or None if not found.
- Return type:
Optional
[Path
]