Commit b1a9d58
[HttpFoundation] Handle error when directory is a file
In File::getTargetFile the directory is recursively
created if it does not exists. If directory creation
fails a FileException is thrown.
This commit improves error clarity by adding a new Exception
for the relatively common situation where the path exists but
instead of a directory it is a file.1 parent e088d76 commit b1a9d58
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
0 commit comments