Show More
@@ -291,6 +291,12 b' class abstractvfs(object):' | |||||
291 | def chmod(self, path, mode): |
|
291 | def chmod(self, path, mode): | |
292 | return os.chmod(self.join(path), mode) |
|
292 | return os.chmod(self.join(path), mode) | |
293 |
|
293 | |||
|
294 | def dirname(self, path): | |||
|
295 | """return dirname element of a path (as os.path.dirname would do) | |||
|
296 | ||||
|
297 | This exists to allow handling of strange encoding if needed.""" | |||
|
298 | return os.path.dirname(path) | |||
|
299 | ||||
294 | def exists(self, path=None): |
|
300 | def exists(self, path=None): | |
295 | return os.path.exists(self.join(path)) |
|
301 | return os.path.exists(self.join(path)) | |
296 |
|
302 |
General Comments 0
You need to be logged in to leave comments.
Login now