Skip to content

Commit

Permalink
Runtime: add Unix.has_symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 28, 2021
1 parent 7407778 commit b2cf7cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/tests-check-prim/output
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ unix_getpwuid
unix_gettimeofday
unix_getuid
unix_gmtime
unix_has_symlink
unix_isatty
unix_localtime
unix_lstat
Expand Down
6 changes: 6 additions & 0 deletions runtime/unix.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,9 @@ function unix_getuid(unit) {
function unix_getpwuid(unit) {
caml_raise_not_found()
}

//Provides: unix_has_symlink
//Requires: fs_node_supported
function unix_has_symlink(unit) {
return fs_node_supported()?1:0
}

0 comments on commit b2cf7cb

Please sign in to comment.