a problem in datetime.interval()

2009-03-09 Thread lameck kassana
hi , I am writing a scriot which will move old files from one directory to backup The files are in mode *20090307* mean *mmmdd* to new files. The script is below is like this *import os import datetime import time from datetime import date today=date.today()* *for x in range(5,10): interva

Re: problem with glob in remote directory or os.walk in remote directory in windos

2009-02-27 Thread lameck kassana
07:02:57 -0200, lameck kassana > escribió: > > now it is working but i wonder it brings higher number of count as if it >> counts files in wholes computer can you check in my code and correct me >> >> import glob >&g

Re: problem with glob in remote directory or os.walk in remote directory in windos

2009-02-27 Thread lameck kassana
ossible since files are around six thousands daily. thanks in advance On Thu, Feb 26, 2009 at 5:15 PM, Steve Holden wrote: > lameck kassana wrote: > > ok my original question is how can count the files of ceratin pattern(eg > > *.txt) in remote directory .It seems use of glob.g

Re: problem with glob in remote directory or os.walk in remote directory in windos

2009-02-26 Thread lameck kassana
26, 2009 at 4:46 PM, Steve Holden wrote: > lameck kassana wrote: > > i am trying to write script which will count files for remote directory > > which having certain pattern. > > > Please refrain from repeating questions. When you posted this a reply > had already been ma

problem with glob in remote directory or os.walk in remote directory in windos

2009-02-26 Thread lameck kassana
i am trying to write script which will count files for remote directory which having certain pattern. i tried with my code and have a look at this code. --- import glob import os import time from datetime import date

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

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