I'm using python glob.glob("*.json"). The script returns a file of json files, but after applying some operations it creates a new json file. If I run the same script again it adds this new file in list...
glob.glob("*.json")
Output:
['men_pro_desc_zalora.json',
'man_pro_desc_Zalando.json',
'man_pro_desc_nordstrom.json']
End of code:
with open("merged_file.json", "w") as outfile:
json.dump(result, outfile)
After running addition of file merged_file.json if I run again glob.glob("*.json") it returns:
['men_pro_desc_zalora.json',
'man_pro_desc_Zalando.json',
'man_pro_desc_nordstrom.json',
merged_file.json]