packagefileutils
Install
Dune Dependency
Authors
Maintainers
Sources
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
Published:31 Dec 2024
README
Fileutils - OCaml API to manipulate real files (POSIX like) and filenames
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 theopam package manager:
$ opam install fileutils
Documentation
API documentation isavailable online.
Used by (42)
- acpc
= "1.2.3"
- bap-api
>= "2.2.0"
- bap-bundle
- bap-byteweight-frontend
- bap-cache
>= "2.2.0"
- bap-fsi-benchmark
- bap-ida
- bap-patterns
- bap-plugins
- bap-recipe
- bap-recipe-command
- bap-std
- boulangerie
- cryptodbm
- daft
- dirsift
- elpi
>= "1.19.4"
- fstar
< "2025.02.17"
- gettext
- gettext-camomile
- gettext-stub
< "0.5.0"
- goblint
>= "2.2.1"
- inotify
- inotify-eio
- karamel
- kremlin
< "transition"
- liquidsoap
>= "2.3.1"
- liquidsoap-core
- metadb
- oasis2debian
- ocaml-xdg-basedir
< "transition"
- oraft
- passage
- satyrographos
- solidity-common
- soupault
- spin
< "0.6.0"
- syguslib-utils
- timedesc
< "0.8.0"
- timere
< "0.4.0"
- touist
< "3.5.0"
- xdg-basedir
Conflicts
None