equal
deleted
inserted
replaced
194 '''Open files relative to a base directory |
194 '''Open files relative to a base directory |
195 |
195 |
196 This class is used to hide the details of COW semantics and |
196 This class is used to hide the details of COW semantics and |
197 remote file access from higher level code. |
197 remote file access from higher level code. |
198 ''' |
198 ''' |
199 def __init__(self, base, audit=True): |
199 def __init__(self, base, audit=True, expand=False): |
|
200 if expand: |
|
201 base = os.path.realpath(util.expandpath(base)) |
200 self.base = base |
202 self.base = base |
201 self._audit = audit |
203 self._audit = audit |
202 if audit: |
204 if audit: |
203 self.auditor = pathauditor(base) |
205 self.auditor = pathauditor(base) |
204 else: |
206 else: |