include Documents folder

This commit is contained in:
j 2015-09-24 19:00:18 +01:00
parent ad7570c496
commit 188dd5df0f

View file

@ -92,7 +92,9 @@ def parse_path(client, path):
return:
return None if file will not be used, dict with parsed item information otherwise
'''
if len(path.split('/')) != client.folderdepth:
parts = path.split('/')
if len(parts) != client.folderdepth and (len(parts) < client.folderdepth or \
parts[client.folderdepth-1] != 'Documents'):
return None
if not isinstance(path, unicode):
path = path.decode('utf-8')