Walmart and Zenjob notes.
This commit is contained in:
@ -1,20 +1,26 @@
|
||||
from pathlib import Path
|
||||
import pandas as pd
|
||||
import
|
||||
|
||||
currentdir = "/Users/normrasmussen/Documents/Work/CustomerNotes/"
|
||||
path_dir = Path("/Users/normrasmussen/Documents/Work/CustomerNotes/")
|
||||
pd.DataFrame()
|
||||
x = pd.DataFrame()
|
||||
|
||||
|
||||
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]
|
||||
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)
|
||||
company = strfile.split()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user