[xiph-cvs] cvs commit: positron/positron neuros.py

Stan Seibert volsung at xiph.org
Sat Sep 6 16:35:09 PDT 2003



volsung     03/09/06 19:35:09

  Modified:    positron neuros.py
  Log:
  FAT filenames can't end with periods.  (Or at least the vfat driver won't
  save them that way.)  Closes bug 416.

Revision  Changes    Path
1.5       +7 -0      positron/positron/neuros.py

Index: neuros.py
===================================================================
RCS file: /usr/local/cvsroot/positron/positron/neuros.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- neuros.py	25 May 2003 22:30:03 -0000	1.4
+++ neuros.py	6 Sep 2003 23:35:09 -0000	1.5
@@ -71,8 +71,15 @@
 
         new_filename += new_char
 
+    # FAT filenames can't end with period
+    while new_filename.endswith('.'):
+        new_filename = new_filename[:-1]
+    
     return new_filename
 
+    #return new_filename.rstrip('.')  Replace above code w/ this after
+    #                                 Python 2.2.2 and later are required
+
 class Neuros:
 
     DB_DIR = path.normcase("WOID_DB")

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list