manusimidt / py-xbrl

Python-based parser for parsing XBRL and iXBRL files
https://py-xbrl.readthedocs.io/en/latest/
GNU General Public License v3.0
100 stars 37 forks source link

Check if given cache path makes sense #1

Closed manusimidt closed 3 years ago

manusimidt commented 3 years ago

Describe the bug A clear and concise description of what the bug is:

Not really a bug, but if the user forgets to add the / at the end of the cache path, the HttpCache will store the files in i.e: ./cachewww.sec.gov.

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen:

Automatically append the / at the end of the cache path

Screenshots If applicable, add screenshots to help explain your problem:

cache: HttpCache = HttpCache('./cache')
# should have the same effect as:
cache: HttpCache = HttpCache('./cache/')