equal
deleted
inserted
replaced
197 To avoid file stat ambiguity forcibly, checkambig=True involves |
197 To avoid file stat ambiguity forcibly, checkambig=True involves |
198 copying ``src`` file, if it is owned by another. Therefore, use |
198 copying ``src`` file, if it is owned by another. Therefore, use |
199 checkambig=True only in limited cases (see also issue5418 and |
199 checkambig=True only in limited cases (see also issue5418 and |
200 issue5584 for detail). |
200 issue5584 for detail). |
201 """ |
201 """ |
|
202 self._auditpath(dst, 'w') |
202 srcpath = self.join(src) |
203 srcpath = self.join(src) |
203 dstpath = self.join(dst) |
204 dstpath = self.join(dst) |
204 oldstat = checkambig and util.filestat.frompath(dstpath) |
205 oldstat = checkambig and util.filestat.frompath(dstpath) |
205 if oldstat and oldstat.stat: |
206 if oldstat and oldstat.stat: |
206 ret = util.rename(srcpath, dstpath) |
207 ret = util.rename(srcpath, dstpath) |