My reqirement is to count the total number of files and subdirectories under a specific path from the two different server using PYTHON. (Both server are linux)
I dunno to connect to server using PYTHON.
Can anyone please give solution?
Here I have written my code for your reference
for root, dirs, files in os.walk('/home/webdocs/wind2_documents'):
dircnt += len(dirs)
filecnt += len(files)
Open in new window
This would make the solution trivial...