Commit d663c00
committed
fix(path): return empty string from getReadablePath when path is empty
ROO-437: Prevent showing CWD basename when file path is empty/undefined
When getReadablePath() was called with an empty or undefined path, it
returned path.basename(cwd) (e.g., 'extracker'), which was misleading
users into thinking the model was trying to write to a directory.
Now it returns an empty string instead, so the UI shows nothing rather
than a misleading directory name when the path is unavailable.1 parent e23e1ec commit d663c00
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
0 commit comments