fab.steps.cleanup_prebuilds#
Pruning of old files from the incremental/prebuild folder.
Functions
|
|
|
|
|
A step to delete old files from the local incremental/prebuild folder. |
|
Return the access time of the given file. |
|
- fab.steps.cleanup_prebuilds.cleanup_prebuilds(config, older_than=None, n_versions=0, all_unused=None)#
A step to delete old files from the local incremental/prebuild folder.
Assumes prebuild filenames follow the pattern: <stem>.<hash>.<suffix>.
- Parameters:
config – The
fab.build_config.BuildConfig
object where we can read settings such as the project workspace folder or the multiprocessing flag.older_than (
Optional
[timedelta
]) – Delete prebuild artefacts which are n seconds older than the last prebuild access time. (default:None
)n_versions (
int
) – Only keep the most recent n versions of each artefact <stem>.*.<suffix> (default:0
)all_unused (
Optional
[bool
]) – Delete everything which was not part of the current build. (default:None
)
If no parameters are specified then all_unused will default to True.