From 79cddb422c4ac3be5ffa5ff6923e682f3c5f8805 Mon Sep 17 00:00:00 2001 From: robweber Date: Sun, 14 Mar 2021 21:18:28 -0500 Subject: [PATCH] part of #186 --- changelog.md | 3 ++- resources/lib/vfs.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 4c1ddae..e66220c 100644 --- a/changelog.md +++ b/changelog.md @@ -8,7 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Fixed -- error when typing the remote path, ```listBackups()``` function was not working if final slash not included in typed directory path name. +- error when typing the remote path, ```listBackups()``` function was not working if final slash not included in typed directory path name. +- added ```force=True``` flag to the ```rmdir()``` function. Fixes issue with directories being removed when not empty ## [Version 1.6.5](https://github.com/robweber/xbmcbackup/compare/matrix-1.6.4...robweber:matrix-1.6.5) - 2021-03-06 diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py index 4680725..9cd044b 100644 --- a/resources/lib/vfs.py +++ b/resources/lib/vfs.py @@ -73,7 +73,7 @@ class XBMCFileSystem(Vfs): return xbmcvfs.copy(xbmcvfs.translatePath(source), xbmcvfs.translatePath(dest)) def rmdir(self, directory): - return xbmcvfs.rmdir(directory) + return xbmcvfs.rmdir(directory, force=True) # use force=True to make sure it works recursively def rmfile(self, aFile): return xbmcvfs.delete(aFile)