App-htidx
view release on metacpan or search on metacpan
lib/App/htidx.pm view on Meta::CPAN
126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166$fh
->
say
(
$H
->
open
(
'tbody'
));
$fh
->
say
(
$H
->
tr
(
{
class
=>
'htidx-directory'
},
[
$H
->td(
$H
->a(
{
href
=>
'..'
},
'Parent Directory'
)),
$H
->td(strftime(TIMEFMT,
localtime
(
stat
(File::Spec->catfile(dirname(
$dir
)))->mtime))),
$H
->td(
'-'
)
]
))
unless
(
$toplevel
);
foreach
my
$entry
(@{
$dref
}) {
$fh
->
say
(
$H
->
tr
(
{
class
=>
'htidx-directory'
},
[
map
{
$H
->td(
$_
) } (
$H
->a(
{
href
=>
$entry
},
he(
$entry
.
'/'
)
),
strftime(TIMEFMT,
localtime
(
stat
(File::Spec->catfile(
$dir
,
$entry
))->mtime)),
'-'
,
) ]
));
}
foreach
my
$entry
(@{
$fref
}) {
my
$stat
=
stat
(File::Spec->catfile(
$dir
,
$entry
));
$fh
->
say
(
$H
->
tr
(
{
class
=>
'htidx-file'
},
[
map
{
$H
->td(
$_
) } (
$H
->a(
{
href
=>
$entry
},
he(
$entry
)
),
strftime(TIMEFMT,
localtime
(
$stat
->mtime)),
fsize(
$stat
->size),
( run in 0.491 second using v1.01-cache-2.11-cpan-00829025b61 )