--- loncom/publisher/lonpubdir.pm 2001/04/03 10:48:08 1.2
+++ loncom/publisher/lonpubdir.pm 2001/04/03 14:52:23 1.3
@@ -34,6 +34,7 @@ sub handler {
$fn=$r->filename();
}
+ $fn=~s/\/$//;
unless ($fn) {
$r->log_reason($ENV{'user.name'}.' at '.$ENV{'user.domain'}.
@@ -57,7 +58,7 @@ sub handler {
my $thisdisfn=$fn;
$thisdisfn=~s/^\/home\/$uname\/public_html//;
- $r->print('
Construction Space Directory '.$thisdisfn.'
');
+ $r->print('Construction Space Directory '.$thisdisfn.'/
');
my $docroot=$r->dir_config('lonDocRoot');
@@ -97,9 +98,16 @@ sub handler {
'>'.$filename.
' | '.localtime($cmtime).' | '.$status.' | ');
} elsif ($cmode&$dirptr) {
- $r->print(''.$filename.
- ' | '.localtime($cmtime).' | |
');
+ my $disfilename=$filename;
+ if ($filename eq '..') {
+ $disfilename='Parent Directory';
+ }
+ unless ((($filename eq '..') && ($thisdisfn eq '')) ||
+ ($filename eq '.')) {
+ $r->print(''.$disfilename.
+ ' | '.localtime($cmtime).' | |
');
+ }
}
}
closedir(DIR);