package fileutils

All checked builds pass
  1. Overview
  2. Docs
XDG basedir location for data/cache/configuration files

Install

dune-project
 Dependency

Authors

Maintainers

Sources

fileutils-0.6.6.tbz
sha256=796d5791e2bf7b3bff200cf5057a7a1878439ebcd74ed0f1088cf86756d52be6
sha512=ecc38b1577ab108bd24d1e9f0e83596254e542eefb37020dedcff7ca0109e562411cbb9806fbc6f88f4166569bf061a444971388c26950ec02dfc48b35daed90

Description

This library provides an API to perform POSIX like operations on files like:

  • mv
  • cp
  • rm
  • mkdir
  • touch
  • which...

It also provides a module to manipulate abstract filenames:

  • classification
  • make_relative: made a filename relative to another
  • make_absolute

Added to opam-repository:

README

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.

Dependencies (3)

  1. ocaml >= "4.14"
  2. base-unix
  3. dune >= "2.9"

Dev Dependencies (2)

  1. odoc with-doc
  2. ounit2 >= "2.0.0" & with-test

Conflicts

None

Build status

Results of building fileutils with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.6.6 (this version) n/a good good good good
0.6.4 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure