Skip to content

If is a csv file in the ad1 directory #4

@kaci

Description

@kaci

If is a csv file in the ad1 directory (FTK Imager create file list in csv format, in the same dir), i get this error:

Traceback (most recent call last):
File "demo.py", line 7, in
with pyad1.reader.AD1Reader(sys.argv[1]) as ad1:
File "/usr/lib/python3.7/site-packages/pyad1-0.1-py3.7.egg/pyad1/reader.py", line 19, in init
File "/usr/lib/python3.7/site-packages/pyad1-0.1-py3.7.egg/pyad1/reader.py", line 83, in _Glob
ValueError: invalid literal for int() with base 10: '1.csv'

In reader.py, 80. line:
if ad_path.endswith('.txt'):
replace it with this:
if ad_path.endswith('.txt', '.csv'):

Thanks, kaci

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions