equal
deleted
inserted
replaced
130 def normpath(path): |
130 def normpath(path): |
131 return pconvert(os.path.normpath(path)) |
131 return pconvert(os.path.normpath(path)) |
132 |
132 |
133 def normcase(path): |
133 def normcase(path): |
134 return encoding.upper(path) |
134 return encoding.upper(path) |
135 |
|
136 def realpath(path): |
|
137 ''' |
|
138 Returns the true, canonical file system path equivalent to the given |
|
139 path. |
|
140 ''' |
|
141 # TODO: There may be a more clever way to do this that also handles other, |
|
142 # less common file systems. |
|
143 return os.path.normpath(normcase(os.path.realpath(path))) |
|
144 |
135 |
145 def samestat(s1, s2): |
136 def samestat(s1, s2): |
146 return False |
137 return False |
147 |
138 |
148 # A sequence of backslashes is special iff it precedes a double quote: |
139 # A sequence of backslashes is special iff it precedes a double quote: |