Commit 1cc6007
authored
### 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.
1 parent 8579e59 commit 1cc6007
3 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| |||
0 commit comments