12 |
use Carp; |
use Carp; |
13 |
use Data::Dumper; |
use Data::Dumper; |
14 |
|
|
15 |
our $VERSION = '0.07'; |
our $VERSION = '0.08'; |
16 |
|
|
17 |
# block size for this filesystem |
# block size for this filesystem |
18 |
use constant BLOCK => 1024; |
use constant BLOCK => 1024; |
329 |
|
|
330 |
# read them in with sesible defaults |
# read them in with sesible defaults |
331 |
while (my $row = $sth->{'filenames'}->fetchrow_hashref() ) { |
while (my $row = $sth->{'filenames'}->fetchrow_hashref() ) { |
332 |
|
$row->{'filename'} ||= 'NULL-'.$row->{'id'}; |
333 |
$files{$row->{'filename'}} = { |
$files{$row->{'filename'}} = { |
334 |
size => $row->{'size'}, |
size => $row->{'size'}, |
335 |
mode => $row->{'writable'} ? 0644 : 0444, |
mode => $row->{'writable'} ? 0644 : 0444, |
336 |
id => $row->{'id'} || 99, |
id => $row->{'id'} || 99, |
337 |
}; |
}; |
338 |
|
|
339 |
|
|
340 |
my $d; |
my $d; |
341 |
foreach (split(m!/!, $row->{'filename'})) { |
foreach (split(m!/!, $row->{'filename'})) { |
342 |
# first, entry is assumed to be file |
# first, entry is assumed to be file |