mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
attempted fix for Dropbox file recursion
This commit is contained in:
parent
23b70af3dc
commit
ee435a90ef
@ -147,7 +147,7 @@ class DropboxFileSystem(Vfs):
|
||||
else:
|
||||
return False
|
||||
|
||||
def put(self,source,dest):
|
||||
def put(self,source,dest,retry=True):
|
||||
dest = self._fix_slashes(dest)
|
||||
|
||||
if(self.client != None):
|
||||
@ -157,8 +157,11 @@ class DropboxFileSystem(Vfs):
|
||||
return True
|
||||
except:
|
||||
#if we have an exception retry
|
||||
retry = True
|
||||
return self.put(source,dest)
|
||||
if(retry):
|
||||
return self.put(source,dest,False)
|
||||
else:
|
||||
#tried once already, just quit
|
||||
return False
|
||||
else:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user