mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
Merge pull request #52 from robweber/dropbox_fix
Fix for dropbox file recursion errors
This commit is contained in:
commit
dd3a50027e
@ -147,7 +147,7 @@ class DropboxFileSystem(Vfs):
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def put(self,source,dest):
|
def put(self,source,dest,retry=True):
|
||||||
dest = self._fix_slashes(dest)
|
dest = self._fix_slashes(dest)
|
||||||
|
|
||||||
if(self.client != None):
|
if(self.client != None):
|
||||||
@ -157,8 +157,11 @@ class DropboxFileSystem(Vfs):
|
|||||||
return True
|
return True
|
||||||
except:
|
except:
|
||||||
#if we have an exception retry
|
#if we have an exception retry
|
||||||
retry = True
|
if(retry):
|
||||||
return self.put(source,dest)
|
return self.put(source,dest,False)
|
||||||
|
else:
|
||||||
|
#tried once already, just quit
|
||||||
|
return False
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user