mes: Add file-exists?.

* mes/module/mes/guile.mes (file-exists?): New function.
This commit is contained in:
Jan Nieuwenhuizen 2018-11-11 10:14:50 +01:00
parent e95c5742be
commit e0a2d540f4
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 4 additions and 0 deletions

View File

@ -137,4 +137,8 @@
(if destination (simple-format lst rest)
(with-output-to-string
(lambda () (simple-format lst rest))))))
(define format simple-format)
(define (file-exists? o)
(access? o R_OK))