Re: i have problem with glob.glob() in remotely directory

2009-02-28 Thread Tim Roberts
lameck kassana chela...@gmail.com wrote: i did try but still not working.But also i try os.walk() for remote computer like os.walk('\\192.168.0.45') it also failed Of course it did, for two different reasons. First, you can't just walk an IP address. You have to specify one of the shares

i have problem with glob.glob() in remotely directory

2009-02-26 Thread lameck kassana
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

Re: i have problem with glob.glob() in remotely directory

2009-02-26 Thread Chris Rebert
On Thu, Feb 26, 2009 at 1:05 AM, lameck kassana chela...@gmail.com wrote: 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

Re: i have problem with glob.glob() in remotely directory

2009-02-26 Thread lameck kassana
i did try but still not working.But also i try os.walk() for remote computer like os.walk('\\192.168.0.45') it also failed Thats it is my main problem do i need any new imports besides import os On 2/26/09, Chris Rebert c...@rebertia.com wrote: On Thu, Feb 26, 2009 at 1:05 AM, lameck kassana

Re: i have problem with glob.glob() in remotely directory

2009-02-26 Thread Steve Holden
Chris Rebert wrote: On Thu, Feb 26, 2009 at 1:05 AM, lameck kassana chela...@gmail.com wrote: 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