Skip to content

gildor478/ocaml-fileutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7f00777 · Dec 28, 2024
Dec 28, 2024
Dec 28, 2024
Jun 28, 2022
Dec 28, 2024
Sep 13, 2019
Sep 14, 2019
Oct 28, 2022
Oct 28, 2014
Aug 5, 2014
Dec 28, 2024
Dec 28, 2024

Repository files navigation

Fileutils - OCaml API to manipulate real files (POSIX like) and filenames

OCaml-CI Build Status

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.