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