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

2009-02-28 Thread Tim Roberts
lameck kassana 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 that the machine e

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 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 >> >> fo

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 wrote: > On Thu, Feb 26, 2009 at 1:05 AM, lameck kassana wrote: > > hey

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 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 glob.glob('\\192.168.0.

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 ',to