1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Fileutils - OCaml API to manipulate real files (POSIX like) and filenames
=========================================================================
[](https://ci.ocamllabs.io/github/gildor478/ocaml-fileutils)
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
[travis]: https://travis-ci.org/gildor478/ocaml-fileutils
[travis-img]: https://travis-ci.org/gildor478/ocaml-fileutils.svg?branch=master
[appveyor]: https://ci.appveyor.com/project/gildor478/ocaml-fileutils/branch/master
[appveyor-img]: https://ci.appveyor.com/api/projects/status/pddhb2c22rc8wtd3/branch/master?svg=true
[opam]: https://opam.ocaml.org
Installation
------------
The recommended way to install fileutils is via the [opam package manager][opam]:
```sh
$ opam install fileutils
```
Documentation
-------------
API documentation is
[available online](https://gildor478.github.io/ocaml-fileutils).
|