[minor] ignore list for dropbox

This commit is contained in:
Rushabh Mehta 2015-04-17 12:01:40 +05:30
parent 0939a5ac4c
commit b092339c3a

View File

@ -16,6 +16,8 @@ import frappe
from frappe.utils import get_request_site_address, cstr
from frappe import _
ignore_list = [".DS_Store"]
@frappe.whitelist()
def get_dropbox_authorize_url():
sess = get_dropbox_session()
@ -98,6 +100,9 @@ def backup_to_dropbox():
for filename in os.listdir(path):
filename = cstr(filename)
if filename in ignore_list:
continue
found = False
filepath = os.path.join(path, filename)
for file_metadata in response["contents"]: