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:
return None if file will not be used, dict with parsed item information otherwise 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 return None
if not isinstance(path, unicode): if not isinstance(path, unicode):
path = path.decode('utf-8') path = path.decode('utf-8')