Show More
@@ -282,6 +282,12 class abstractvfs(object): | |||||
282 | finally: |
|
282 | finally: | |
283 | fp.close() |
|
283 | fp.close() | |
284 |
|
284 | |||
|
285 | def basename(self, path): | |||
|
286 | """return base element of a path (as os.path.basename would do) | |||
|
287 | ||||
|
288 | This exists to allow handling of strange encoding if needed.""" | |||
|
289 | return os.path.basename(path) | |||
|
290 | ||||
285 | def chmod(self, path, mode): |
|
291 | def chmod(self, path, mode): | |
286 | return os.chmod(self.join(path), mode) |
|
292 | return os.chmod(self.join(path), mode) | |
287 |
|
293 |
General Comments 0
You need to be logged in to leave comments.
Login now