File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env python
22
33# This program reads all *.py and test/*.py in "libDir", and
4- # copies those files with illegal DOS names to libDir/dos_8x3 .
4+ # copies those files with illegal DOS names to libDir/dos-8x3 .
55# Names are illegal if they are longer than 8x3 chars or if they
66# contain uppercase chars. It also tests for name collisions.
7- # You must first create the directory libDir/dos_8x3 yourself.
8- # You should remove all files in dos_8x3 if you run it again.
7+ # You must first create the directory libDir/dos-8x3 yourself.
8+ # You should remove all files in dos-8x3 if you run it again.
99
10- # CHANGE libDir TO THE CORRECT DIRECTORY. RM dos_8x3 /* FIRST.
10+ # CHANGE libDir TO THE CORRECT DIRECTORY. RM dos-8x3 /* FIRST.
1111
1212import sys , os , regex , string
1313
1616def make8x3 ():
1717 reg_uppercase = regex .compile ("[A-Z]" )
1818 collisions = {} # See if all names are unique in first 8 chars.
19- destDir = os .path .join (libDir , "dos_8x3 " )
19+ destDir = os .path .join (libDir , "dos-8x3 " )
2020 if not os .path .isdir (destDir ):
2121 print "Please create the directory" , destDir , "first."
2222 err ()
You can’t perform that action at this time.
0 commit comments