odwyersoftware / mega.py

Python library for the https://mega.nz/ API.
https://github.com/odwyersoftware/mega.py
Apache License 2.0
349 stars 170 forks source link

fix issue #15 (creating a folder) #86

Closed xbudy closed 2 years ago

xbudy commented 2 years ago

This was the issue

File "/path/mega.py", line 307, in find_path_descriptor and file[1]['a']['n'] == foldername): TypeError: string indices must be integers

So we need to check first that file[1]['a'] is a dictionary by adding :

if type(file[1]['a'])==type({}):