ianmackenzie / elm-script

Experimental command-line scripting for Elm
34 stars 4 forks source link

Add File.stat or similar #1

Closed ianmackenzie closed 6 years ago

ianmackenzie commented 7 years ago

Be able to at least check for existence of a given File, something like:

File.stat : File (Read p) -> Script File.DoesNotExist File.Stats
-- and/or
File.access : File (Read p) -> Script x Bool

Also add equivalent functions for Directory.

ianmackenzie commented 6 years ago

Added as Directory.checkExistence in ae73257ded0ac38cb7d6282a8e074bf08df79a65 and File.checkExistence in 4cfcec3bbec340b080dae88468c22f18ab8348d6.