[LON-CAPA-cvs] cvs: loncom /publisher lonpubdir.pm

raeburn raeburn at source.lon-capa.org
Sat Jul 27 17:38:54 EDT 2013


raeburn		Sat Jul 27 21:38:54 2013 EDT

  Modified files:              
    /loncom/publisher	lonpubdir.pm 
  Log:
  - Don't list .DS_Store file saved when viewing directory via webDAV on MacOS.
  
  
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.147 loncom/publisher/lonpubdir.pm:1.148
--- loncom/publisher/lonpubdir.pm:1.147	Tue Jul  2 19:04:49 2013
+++ loncom/publisher/lonpubdir.pm	Sat Jul 27 21:38:54 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Authoring Space Directory Lister
 #
-# $Id: lonpubdir.pm,v 1.147 2013/07/02 19:04:49 raeburn Exp $
+# $Id: lonpubdir.pm,v 1.148 2013/07/27 21:38:54 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -97,6 +97,7 @@
   opendir(DIR,$fn);
   my @files=sort {uc($a) cmp uc($b)} (readdir(DIR));
   foreach my $filename (@files) {
+     next if ($filename eq '.DS_Store');
      my ($cdev,$cino,$cmode,$cnlink,
          $cuid,$cgid,$crdev,$csize,
          $catime,$cmtime,$cctime,




More information about the LON-CAPA-cvs mailing list