include Documents folder
This commit is contained in:
parent
ad7570c496
commit
188dd5df0f
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue