File: tree

package info (click to toggle)
libfile-find-object-perl 0.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 316 kB
  • sloc: perl: 1,813; makefile: 2
file content (23 lines) | stat: -rwxr-xr-x 361 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl

# $Id$

use strict;
use warnings;
use File::Find::Object;
use Getopt::Long;

my %options;

GetOptions(
    'd' => \$options{depth},
    'n' => \$options{nonet},
    'f' => \$options{nocrossfs},
    'l' => \$options{followlink},
);

my $tree = File::Find::Object->new({ %options }, @ARGV);

while (my $r = $tree->next()) {
    print $r ."\n";
}