package spotlib

  1. Overview
  2. Docs

/usr/bin/test like file testing

type test_unary = string -> ([ `TRUE of Unix.stats | `FALSE of Unix.stats ], Unix.error) result
val _d : string -> bool
val _d' : test_unary

-d: FILE exists and is a directory

val _e : string -> bool
val _e' : string -> ([ `TRUE of Unix.stats | `FALSE ], Unix.error) result

-e: FILE exists

val _f : string -> bool
val _f' : test_unary

-f: FILE exists and is a regular file

val _h : string -> bool
val _h' : test_unary

-h: FILE exists and is a symbolic link (same as -L)

val _L : string -> bool
val _L' : test_unary

-L: FILE exists and is a symbolic link (same as -h)

val _s : string -> bool
val _s' : test_unary

-s: FILE exists and has a size greater than zero

OCaml

Innovation. Community. Security.