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):

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

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

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

2009-02-27 Thread lameck kassana
Fri, 27 Feb 2009 07:02:57 -0200, lameck kassana lkass...@gmail.com 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 import os

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

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: problem with glob in remote directory or os.walk in remote directory in windos

2009-02-26 Thread lameck kassana
glob.glob() On Thu, Feb 26, 2009 at 4:46 PM, Steve Holden st...@holdenweb.com 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