Module: fileutils
prune_old_items(directory, threshold=DEFAULT_THRESHOLD)
Prune old items in a directory to keep the number of items below a threshold.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directory |
Path
|
Directory to prune. |
required |
threshold |
int
|
Maximum number of items to keep in the directory. |
DEFAULT_THRESHOLD
|
Returns:
Type | Description |
---|---|
None
|
None |