1
I am learning to program and I would like to know if you have any way to create in python a list of network file inventory, contento as follows situations: Network Path: rg2srv0164 11_desenv_estrategico$ After I inform him to return me a list with the inventory as demonstrator below:
Folder Subfolders | Creation Date | Modification Date | File Example | File Author | Saved by|
and export in TXT or CSV
insert image description here
There are several ways to do this report, the easiest is to use the walk() method from the OS library that comes in Python to list all files from the network. Unfortunately I will not know how to get the date of creation, modification and author of these files but it is very likely that there is a library that takes care of it... Now the part of generating the report the best option is to use the pandas library, create a dictionary containing the name of the index and pass a list with the files, date, examples and author. Create a Dataframe with the dictionary and use the to_csv method to save to csv.
– Igor Gabriel
Welcome to Stack Overflow! Your question seems to have some problems and your experience here in Stack Overflow may not be the best because of this. We want you to do well here and get what you want, but for that we need you to do your part. Here are some guidelines that will help you: Stack Overflow Survival Guide in English (short version). If the help is very simple it is still possible to do in the comments.
– Maniero