Fix deleting folders on WinXP (fixes #2522)

This commit is contained in:
buinsky
2015-11-30 18:57:08 +03:00
parent 45535c0f5a
commit 05a31c2686
2 changed files with 2 additions and 0 deletions

View File

@@ -716,6 +716,7 @@ func (p *rwFolder) deleteDir(file protocol.FileInfo) {
osutil.InWritableDir(osutil.Remove, filepath.Join(realName, file))
}
}
dir.Close()
}
err = osutil.InWritableDir(osutil.Remove, realName)