Commit 2d67c02
committed
Fix read-only filesystem error: auto-fallback to ~/Desktop for output
When the VCF file is on a read-only volume (e.g., opened directly from
.dmg, network mount, or external drive), the core library fails trying
to write output files in the same directory.
Now run_analysis tests writability of the VCF's parent directory before
running. If not writable, falls back to ~/Desktop (or ~ if no Desktop).
Uses HOME/USERPROFILE env vars — no new dependencies needed.1 parent 2be2654 commit 2d67c02
1 file changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
140 | 161 | | |
141 | 162 | | |
142 | 163 | | |
| |||
0 commit comments