Skip to content

Commit 8eda0ef

Browse files
committed
CHANGE: removing info? function (as it duplicates query), and having exists? returning logic value.
related issue: metaeducation/rebol-issues#1613
1 parent 15f8e47 commit 8eda0ef

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/mezz/base-files.r

+3-10
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,11 @@ REBOL [
1616
}
1717
]
1818

19-
info?: func [
20-
{Returns an info object about a file or url.}
21-
target [file! url!]
22-
][
23-
query target
24-
]
25-
2619
exists?: func [
27-
{Returns the type of a file or URL if it exists, otherwise none.}
20+
{Determines if a file or URL exists.}
2821
target [file! url!]
29-
][ ; Returns 'file or 'dir, or none
30-
select attempt [query target] 'type
22+
][
23+
to logic! query target
3124
]
3225

3326
size?: func [

0 commit comments

Comments
 (0)