Commit e8327190 authored by bescoto's avatar bescoto

NFS rmtree update by Perdaens


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@526 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 4eba140d
New in v0.13.5 (2004/??/??)
---------------------------
Added error-correcting fsync suggestion by Antoine Perdaens.
rdiff-backup may work better with NFS now.
New in v0.13.4 (2004/01/31)
---------------------------
......
......@@ -848,7 +848,9 @@ class RPath(RORPath):
log.Log("Deleting %s" % self.path, 7)
if self.isdir():
try: self.rmdir()
except os.error: self.conn.shutil.rmtree(self.path)
except os.error:
if Globals.fsync_directories: self.fsync()
self.conn.shutil.rmtree(self.path)
else: self.conn.os.unlink(self.path)
self.setdata()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment