Reorged notes, ready for the next step. Glassdoor notes. Some small script changes.

This commit is contained in:
Norm Rasmussen
2023-09-05 20:06:18 -04:00
parent 020d9fa764
commit 18271d15a4
79 changed files with 72 additions and 20479 deletions

View File

@ -0,0 +1,21 @@
from pathlib import Path
currentdir = "/Users/normrasmussen/Documents/Work/CustomerNotes/"
path_dir = Path("/Users/normrasmussen/Documents/Work/CustomerNotes/")
def path_files(path_dir):
listfiles = list(path_dir.glob("**/*.md"))
print(f"Successfully made the '{path_dir}' directory.")
for file in listfiles:
strfile = str(file)
company = strfile.split("/")[6][:-3]
new_dir = path_dir / company
new_dir.mkdir()
file.rename(
f"/Users/normrasmussen/Documents/Work/CustomerNotes/{company}/{company}.md"
)
print(company)
if __name__ == "__main__":
path_files(path_dir)