Skip to content

Commit

Permalink
CHANGE: removing info? function (as it duplicates query), and hav…
Browse files Browse the repository at this point in the history
…ing `exists?` returning logic value.

related issue: metaeducation/rebol-issues#1613
  • Loading branch information
Oldes committed May 10, 2018
1 parent 15f8e47 commit 8eda0ef
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/mezz/base-files.r
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,11 @@ REBOL [
}
]

info?: func [
{Returns an info object about a file or url.}
target [file! url!]
][
query target
]

exists?: func [
{Returns the type of a file or URL if it exists, otherwise none.}
{Determines if a file or URL exists.}
target [file! url!]
][ ; Returns 'file or 'dir, or none
select attempt [query target] 'type
][
to logic! query target
]

size?: func [
Expand Down

0 comments on commit 8eda0ef

Please sign in to comment.