I have directory with subdirectories and I have to make a list like:

```
file_name1 modification_date1 path1 
file_name2 modification_date2 path2 

```

and write the list into text file
how can i do it in python?