mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
part of #186
This commit is contained in:
parent
8415ec12ba
commit
79cddb422c
@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|||||||
### Fixed
|
### 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
|
## [Version 1.6.5](https://github.com/robweber/xbmcbackup/compare/matrix-1.6.4...robweber:matrix-1.6.5) - 2021-03-06
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class XBMCFileSystem(Vfs):
|
|||||||
return xbmcvfs.copy(xbmcvfs.translatePath(source), xbmcvfs.translatePath(dest))
|
return xbmcvfs.copy(xbmcvfs.translatePath(source), xbmcvfs.translatePath(dest))
|
||||||
|
|
||||||
def rmdir(self, directory):
|
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):
|
def rmfile(self, aFile):
|
||||||
return xbmcvfs.delete(aFile)
|
return xbmcvfs.delete(aFile)
|
||||||
|
Loading…
Reference in New Issue
Block a user