pyhook

Script to load JSON file and create a condition to end or continue with the code

Script to load JSON file and create a condition to end or continue with the code Question: Hello I call a JSON file with the next code: with open(‘C:/ftpfiles/itemdatasku.json’) as json_file: data = json.load(json_file) What I want to do is create an exception if “list_no” doesn’t exist, or has other information then the script must …

Total answers: 1

How to find files and save them to different folder in python

How to find files and save them to different folder in python Question: I amt trying to find all relevant files and folders from local repository. e.g. I pulled projects from git to my local machine and I want to search for specific files(.txt) and save them to new folder in same pattern (root->dir-> file). …

Total answers: 2