Openbsd-Mtree

OpenBSD::Mtree(3p) Perl Programmers Reference Guide OpenBSD::Mtree(3p)

Openbsd-Mtree

OpenBSD::Mtree(3p) Perl Programmers Reference Guide OpenBSD::Mtree(3p) # OpenBSD::Mtree(3p) Perl Programmers Reference Guide OpenBSD::Mtree(3p) NNAAMMEE # OpenBSD::Mtree - simple "mtree(8)" spec parser SSYYNNOOPPSSIISS # use OpenBSD::Mtree; my %hier; OpenBSD::Mtree::parse(\%hier, "/", "/etc/mtree/4.4BSD.dist", $extra); DDEESSCCRRIIPPTTIIOONN # "OpenBSD::Mtree" is a parser for mtree(8) specifications that can reconstruct directory hierarchies. The basic function "OpenBSD::Mtree::parse_fh(\%hash, $basedir, $fh, $extra)" will populate the hash $hash with defined entries for each directory seen while reading from $fh, assuming the specification is to be interpreted relative to $basedir (some canonicalization of directory names will occur). ...