فهرست منبع

Merge pull request #2539 from buinsky/master

Fix deleting folders on WinXP (fixes #2522)
Audrius Butkevicius 10 سال پیش
والد
کامیت
596c4b77e8
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      AUTHORS
  2. 1 0
      lib/model/rwfolder.go

+ 1 - 0
AUTHORS

@@ -71,4 +71,5 @@ Tully Robinson <[email protected]>
 Tyler Brazier <[email protected]>
 Veeti Paananen <[email protected]>
 Vil Brekin <[email protected]>
+Victor Buinsky <[email protected]>
 Yannic A. <[email protected]> <[email protected]>

+ 1 - 0
lib/model/rwfolder.go

@@ -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)