SyntaxFix
Write A Post
Hire A Developer
Questions
This is what I did to extract the piece of the directory:
for path in file_list: directories = path.rsplit('\\') directories.reverse() line_replace_add_directory = line_replace+directories[2]
Thank you for your help.