python-adfs
changeset 36:a6be29d7d937
Changed the method used to join the path elements when reporting a problem
in creating a directory. The previous method used os.path.join, which
couldn't join a string to a list of path elements.
| author | David Boddie <david@boddie.org.uk> |
|---|---|
| date | Tue Apr 15 02:04:01 2003 +0200 |
| parents | 272601d73ad6 |
| children | 134a5063bb55 |
| files | ADFSlib.py |
| diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/ADFSlib.py Sat Mar 29 23:41:02 2003 +0100 1.2 +++ b/ADFSlib.py Tue Apr 15 02:04:01 2003 +0200 1.3 @@ -1079,6 +1079,7 @@ 1.4 except IOError: 1.5 print "Couldn't open the file, %s" % out_file 1.6 else: 1.7 + 1.8 if name != '$': 1.9 1.10 new_path = self.create_directory(path, name) 1.11 @@ -1137,6 +1138,7 @@ 1.12 except IOError: 1.13 print "Couldn't open the file, %s" % out_file 1.14 else: 1.15 + 1.16 if name != '$': 1.17 1.18 new_path = self.create_directory(path, name) 1.19 @@ -1198,15 +1200,14 @@ 1.20 # This element of the directory already exists 1.21 # but is not a directory. 1.22 print 'A file exists which prevents a ' + \ 1.23 - 'directory from being created: %s' % \ 1.24 - os.path.join(elements) 1.25 + 'directory from being created: %s' % built 1.26 1.27 return "" 1.28 1.29 except OSError: 1.30 1.31 print 'Directory could not be created: %s' % \ 1.32 - os.path.join(elements) 1.33 + string.join(elements, os.sep) 1.34 1.35 return "" 1.36
