--- loncom/publisher/loncfile.pm 2003/11/08 10:48:33 1.43 +++ loncom/publisher/loncfile.pm 2003/11/19 15:06:33 1.45 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.43 2003/11/08 10:48:33 albertel Exp $ +# $Id: loncfile.pm,v 1.45 2003/11/19 15:06:33 taceyjo1 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -110,7 +110,7 @@ sub Debug { # Put out the indicated message butonly if DEBUG is true. if ($DEBUG) { - $log->debug($message); + $log->debug($message); } } @@ -579,6 +579,17 @@ sub NewDir1 } } + +sub Decompress1 { + my ($request, $user, $domain, $fn) = @_; + if( -e $fn) { + $request->print(''); + $request->print('
Decompress '.&display($fn).'?
'); + &CloseForm1($request, $fn); + } else { + $request->print('No such file: '.&display($fn).'
'); + } +} =pod =item NewFile1 @@ -687,7 +698,6 @@ sub phaseone { my $newfilename=&cleanDest($r,$ENV{'form.newfilename'}); $newfilename=&relativeDest($fn,$newfilename,$uname); - $r->print('