Code Monkey home page Code Monkey logo

ltree's Introduction

ltree

Utility to work with file lists in the format of the BSD mtree(8) tool.

Note: This is not a replacement for mtree, and you may want to have both installed side-by-side.

Building

Make sure you have libarchive and its development headers installed. Meson is used for configuration and Ninja for building; Samurai can be used for building as well:

meson build
ninja -C build

Usage

File lists in mtree format are accepted on standard input.

  • ltree -l < MTREE prints out the contents of the list. The -l flag can be omitted, as this is the default mode.

  • ltree -C < MTREE checks whether the files from the list are present in the file system and match the specification.

Operations which act on the file system accept a -p PATH command line option which prepends PATH as prefix to all the file names in the list. Verbose operation can be enabled with -v, which lists each entry as it is processed.

Any operation which prints paths in the output can output them delimited by null characters by passing -0 as a command line option.

Interoperability

The ltree tool can use file lists in the format recognized by libarchive.

On GNU/Linux the mtree port by @archiecobbs is known to generate compatible output.

License

Distributed under terms of the MIT/X11 license

ltree's People

Contributors

aperezdc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.