I have multiple .mydsl
files in my dir. I want to assign each file with a unique ID using Python. When I run the python code, any new files and existing files in the specific directory should b assigned with an ID. Could anyone be able to help me with this.
for root, dirs, files in os.walk( './'):
for file in files:
if file.endswith(".mydsl"):
print(os.path.join(file))