Sys_utils* Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *
val open_in_no_fail : string -> in_channelval open_in_bin_no_fail : string -> in_channelval close_in_no_fail : string -> in_channel -> unitval open_out_no_fail : string -> out_channelval open_out_bin_no_fail : string -> out_channelval close_out_no_fail : string -> out_channel -> unitval nl_regexp : Str.regexpReturns true if substring occurs somewhere inside str.
Deletes the file given by "path". If it is a directory, recursively * deletes all its contents then removes the directory itself.
val logname_ref : string option refval read_all : ?buf_size:int -> in_channel -> string* Like Python's os.path.expanduser, though probably doesn't cover some cases. * Roughly follow's bash's tilde expansion: * http://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html * * ~/foo -> /home/bob/foo if $HOME = "/home/bob" * ~joe/foo -> /home/joe/foo if joe's home is /home/joe
val lines_of_in_channel : in_channel -> string listval set_signal : int -> Sys.signal_behavior -> unitval signal : int -> Sys.signal_behavior -> unit