bos
library. Drop dependency onrresult
.
- Require OCaml >= 4.08.
OS.Dir.create
fix function result on existing files. It returned non-sensical results. The function now errors as it should be. Thanks to Léo Andrès for the report.OS.Dir.create
fix function returningfalse
instead oftrue
when the directory is created with~path:false
. Thanks to Léo Andrès for the report and patch.OS.File.read
support for reading character devices and named pipes. Thanks to Rizo Isrof for the patch.
- Built-in support for tool search. No longer relies on
which
(unix) orwhere
(Windows). OS.Cmd.{exist,must_exist}
get an optional?search
argument. This can break existing programs.- Add
OS.Cmd.{find_tool,get_tool,resolve,search_path_dirs}
. - Add
OS.File.is_executable
. - Deprecate
Cmd.[get_]line_exec
in favor ofCmd.[get_]line_tool
. - Fix
OS.Path.symlink ~force:true
when the forced file is a symbolic link, the operation errored before. Thanks to Anil Madhavapeddy for the report.
- Fix
OS.Dir.create
. The documentation says it returnstrue
if the directory was created andfalse
otherwise. The implementation did the converse, the latter was adjusted to match the doc specification.
- Fix
OS.Cmd.{err_file,out_file,to_file}
. Files were not truncated onappend = false
. OS.File.with_input
, allow to specify the input buffer as an optional argument.
- Fix
OS.Path.fold
on root and relative paths (#61). Thanks to Hezekiah M. Carty for the report and the help. - Fix
OS.File.write
on Windows (#59). Thanks to Hezekiah M. Carty for the report and the fix.
Cmd.dump
, make representation cut and paste friendly. This affects logging made by the library.- Add
Cmd.of_values
, converts arbitrary list of values to a corresponding argument list. - Fix
OS.Path.exists
. Existing file path traversals returned and error rather thanfalse
.
- Fix
OS.File
creation mode from0o622
to0o644
(#55). - Fix semantics of dotfile handling in
OS.Path.{matches,query}
.~dotfile:false
(default) used to not return any path that had a dot segment, even if this was a constant segment without pattern variables. This is no longer the case,~dotfile:false
now only prevents segments starting with a pattern variable to match against dot files, i.e. it controls the exploration of the file system made by the function. Thanks to David Kaloper for the discussion.
- Fix
OS.Cmd
combinators on Linux. Thanks to Andreas Hauptmann for the help (#51) - Fix
OS.Dir.delete
on Linux and Windows. Thanks to Andreas Hauptmann for the help (#50). - Fix
OS.Cmd.exists
on Linux. Thanks to Andreas Hauptmann and Petter Urkedal for the help (#52).
First release.