import os
directory_path = "/path/to/directory"
#For windows
directory_path = "C:\\path\\to\\directory"
file_list = os.listdir(directory_path)
print("List of files in directory:")
for file_name in file_list:
print(file_name)
Open chrome://flags in Chrome Browser
Type password import in Search flags
Choose Enabled from dropdown list box
Click Relaunch button
Open chrome://settings/passwords in Chrome Browser
Click three-dot button in Saved Passwords
Click Import passwords
Locate CSV file and click Open
Run the following command from terminal
taskkill /F /IM chrome.exe
Same command can be used to close other processes.
Just replace chrome.exe with the process name and include extension as well.