![]() |
|
|
|||||||
![]() |
Python - i have problem with glob.glob() in remotely directory |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
hey i want to count number of files in remote computer
example of my code is import glob import os import time from datetime import date today=date.today() dir_count, file_count=0, 0 for files in glob.glob('\\192.168.0.45\files\*.txt'): file_count += len(files) print '----the count of ',today, '-------' print 'Found', dir_count, 'sub-directories in cwd' print 'Found', file_count, 'files in cwd' print 'Found', dir_count + file_count, 'files & sub-directories in cwd' filename="reconciliation.txt" file_string= str(file_count)+','+ str(today)+'\n' File=open(filename,"a") File.writelines( file_string) File.close() i get zero results since glob.glob( )can not traverse in \\192.168.0.45 can I get help please how can i do that??? lameck kassana |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Active Directory Problem / Sync and Group Policy. | keithalmli | General Help Related Topics | 0 | 08-11-2007 03:18 AM |
| Dial Up Problem | smackedass | A+ Certification | 3 | 02-02-2007 11:59 PM |
| Re: Virus Problem ** Help!** | David BlandIII | A+ Certification | 1 | 03-02-2004 06:00 PM |
| Re: Serious Computer Problem | hootnholler | A+ Certification | 1 | 11-24-2003 12:18 PM |
| Re: Serious Computer Problem | Bret | A+ Certification | 0 | 11-19-2003 12:51 AM |