You can use glob to search folders with wildcards.
doc = str(document[“_id”])
glob.glob(‘{}.*’.format(doc))
1
solved How to delete a file without specifying its extension? [closed]
You can use glob to search folders with wildcards.
doc = str(document[“_id”])
glob.glob(‘{}.*’.format(doc))
1
solved How to delete a file without specifying its extension? [closed]