- Fix an odd double-quote escape sequence in the man page.
+ - Fix looking up a naked drive letter as a directory (Dir('C:')).
+
RELEASE 0.94 - Fri, 07 Nov 2003 05:29:48 -0600
path_comp = path_comp[1:]
else:
path_comp = [ path_first, ] + path_comp[1:]
+
+ if not path_comp:
+ path_comp = ['']
# Lookup the directory
for path_name in path_comp[:-1]:
except:
raise
+ # Test that just specifying the drive works to identify
+ # its root directory.
+ p = os.path.abspath(test.workpath('root_file'))
+ drive, path = os.path.splitdrive(p)
+ if drive:
+ # The assert below probably isn't correct for the
+ # general case, but it works for Win32, which covers a
+ # lot of ground...
+ dir = fs.Dir(drive)
+ assert str(dir) == drive + os.sep, str(dir)
+
# Test Dir.children()
dir = fs.Dir('ddd')
fs.File(string.join(['ddd', 'f1'], sep))