mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
fixes #53
This commit is contained in:
parent
097238cf7b
commit
2365649f86
@ -131,6 +131,13 @@ class DropboxFileSystem(Vfs):
|
|||||||
def rmdir(self,directory):
|
def rmdir(self,directory):
|
||||||
directory = self._fix_slashes(directory)
|
directory = self._fix_slashes(directory)
|
||||||
if(self.client != None and self.exists(directory)):
|
if(self.client != None and self.exists(directory)):
|
||||||
|
#dropbox is stupid and will refuse to do this sometimes, need to delete recursively
|
||||||
|
dirs,files = self.listdir(directory)
|
||||||
|
|
||||||
|
for aDir in dirs:
|
||||||
|
self.rmdir(aDir)
|
||||||
|
|
||||||
|
#finally remove the root directory
|
||||||
self.client.file_delete(directory)
|
self.client.file_delete(directory)
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user