[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 21 Jun 2004 22:01:40 -0000


banghart		Mon Jun 21 18:01:40 2004 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  
  	adds sub portfoliomanage eventually to both rename and delete files
  	in user's userfiles/portfolio/ directory
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.512 loncom/lonnet/perl/lonnet.pm:1.513
--- loncom/lonnet/perl/lonnet.pm:1.512	Fri Jun 18 16:35:18 2004
+++ loncom/lonnet/perl/lonnet.pm	Mon Jun 21 18:01:39 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.512 2004/06/18 20:35:18 banghart Exp $
+# $Id: lonnet.pm,v 1.513 2004/06/21 22:01:39 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3585,7 +3585,18 @@
         $udom=$ENV{'user.domain'};
         $uhome=$ENV{'user.home'};
 	my $listing = reply('portls:'.$uname.':'.$udom, $uhome);
-	return '<strong>'.$listing.'</strong><br />';
+	return $listing;
+}
+sub portfoliomanage {
+	# handles deleting and renaming files in user's userfiles/portfolio/ directory
+	# 
+	my ($filename, $fileaction, $filenewname) = @_;
+	my ($udom, $uname, $uhome);
+	$uname=$ENV{'user.name'};
+        $udom=$ENV{'user.domain'};
+        $uhome=$ENV{'user.home'};
+	my $listing = reply('portfoliomanage:'.$uname.':'.$udom.':'.$filename.':'.$fileaction.':'.$filenewname, $uhome);
+	return $listing;
 }