File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ exists?: func [
20
20
{Determines if a file or URL exists.}
21
21
target [file! url! ]
22
22
] [
23
- not none? query /mode target 'type
23
+ either error? try [
24
+ target: query /mode target 'type
25
+ ][ false ][ not none? target ]
24
26
]
25
27
26
28
size? : func [
Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ if "true" <> get-env "CONTINUOUS_INTEGRATION" [
116
116
--assert block? v: query /mode system/ports/input m
117
117
--assert 4 = length? v
118
118
===end-group===
119
+
120
+ ===start-group=== "HTTP"
121
+ --test-- "exists? url"
122
+ ;@@ https://github.com/Oldes/Rebol3/issues/14
123
+ --assert exists? http://httpbin.org/
124
+ --assert not exists? http://httpbin.org/not-exists
125
+
126
+ ===end-group===
119
127
]
120
128
121
129
~~~end-file~~~
You can’t perform that action at this time.
0 commit comments