Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
skip
property to file_item.py
to support conditional file cre…
…ation (#20) ### Overview This PR introduces a `skip` property to the `file_item.py` module, enabling the option to bypass file creation based on conditional settings. ### Changes - **Added `skip` property**: The constructor now initializes the `skip` property based on input properties, defaulting to `False` if not specified. - **Conditional file creation**: Modified the `create` method to check the `skip` property. When set to `True`, the process logs that file creation is skipped and exits early. ### Justification The ability to conditionally skip file creation is essential for workflows that require selective file management. This update allows greater control over file generation without altering existing logic. ### Impact This enhancement reduces unnecessary file creation, optimizing resource use, especially in large projects or in cases where specific files are conditionally excluded. No breaking changes are introduced, ensuring compatibility with existing workflows.
- Loading branch information