fileutils

API to manipulate files (POSIX like) and filenames
README


Features of the project:

  • pure OCaml

  • file functions inspired from GNU fileutils (aiming to be POSIX compatible)

    • cp: copy files and directories

    • mv: rename files and directories

    • rm: remove files and directories

    • test: check file types and compare values

    • find: find files that match certain criteria

    • mkdir: create directory and its parents

    • ls: list content of a directory

    • touch: change file timestamps

    • which: locate a command

    • readlink: resolve symlink

    • du: compute disk usage

    • stat: abstract of Unix.stat

    • cmp: compare files

    • chmod: change permissions of a file

  • filename functions support Win32/Unix/MacOS and Cygwin filenames:

    • Compare: is_subdir, is_updir, compare

    • Transform: make_absolute, make_relative, reduce

    • Extension: chop_extension, check_extension

Installation

The recommended way to install fileutils is via the opam package manager:

$ opam install fileutils

Documentation

API documentation is
available online.

Install
Published
12 Jul 2020
Sources
fileutils-v0.6.3.tbz
sha256=eff581c488e9309eb02268bbfa3d4c9c30ff40d45f7b1e9ef300b3ef0e831462
sha512=2c5e75b894e9f5e3b003d61977a87f5c6964a89d844949eedc55f97c5875cc52052182420bbb4e73925d306479c66400df74e4adfccc5b2102347d13e99505cf
Dependencies
ounit
with-test & >= "2.0.0"
dune
>= "1.11.0"
ocaml
>= "4.03" & < "5.0"
Reverse Dependencies