iupdating walk
Browse files- dropbox_handler.py +2 -0
dropbox_handler.py
CHANGED
|
@@ -54,6 +54,7 @@ def backupFile(localFilename):
|
|
| 54 |
Return the request response, or None in case of error.
|
| 55 |
This will also create directory on dropbox if needed
|
| 56 |
"""
|
|
|
|
| 57 |
localFilename=normalizeFilename(localFilename)
|
| 58 |
dropboxFilename=getDropboxFilename(localFilename)
|
| 59 |
mode = dropbox.files.WriteMode.overwrite
|
|
@@ -79,6 +80,7 @@ def restoreFile(dropboxFilename):
|
|
| 79 |
Return the bytes of the file, or None if it doesn't exist.
|
| 80 |
Will create dir+subdirs if possible
|
| 81 |
"""
|
|
|
|
| 82 |
dropboxFilename=normalizeFilename(dropboxFilename)
|
| 83 |
localFilename=getLocalFilename(dropboxFilename)
|
| 84 |
try:
|
|
|
|
| 54 |
Return the request response, or None in case of error.
|
| 55 |
This will also create directory on dropbox if needed
|
| 56 |
"""
|
| 57 |
+
global TOKEN
|
| 58 |
localFilename=normalizeFilename(localFilename)
|
| 59 |
dropboxFilename=getDropboxFilename(localFilename)
|
| 60 |
mode = dropbox.files.WriteMode.overwrite
|
|
|
|
| 80 |
Return the bytes of the file, or None if it doesn't exist.
|
| 81 |
Will create dir+subdirs if possible
|
| 82 |
"""
|
| 83 |
+
global TOKEN
|
| 84 |
dropboxFilename=normalizeFilename(dropboxFilename)
|
| 85 |
localFilename=getLocalFilename(dropboxFilename)
|
| 86 |
try:
|