lameck kassana wrote:
> At last i did it it was this wrong line file_count += len(files) ---it
> supposed to be file_count+=1
> but thanks for help ya python masters .Steven Holden thanks very
> very much for your tip about raw string
>
Lameck:
Please note that
file_count = 0
for files in
lameck kassana wrote:
> 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
> file_count=0
> for files in glob.glob(r"\\192.16
At last i did it it was this wrong line file_count += len(files) ---it
supposed to be file_count+=1
but thanks for help ya python masters .Steven Holden thanks very very
much for your tip about raw string
On Fri, Feb 27, 2009 at 12:43 PM, Gabriel Genellina
wrote:
> En Fri, 27 Feb 2009 07:02
En Fri, 27 Feb 2009 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
import os
file_count=0
fo
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
file_count=0
for files in
glob.glob(r"\\192.168.0.45\loader\Files\file_log\v20090
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.glob() for remote
> directory is not working .Example I want to count the files in following
> shared folder \\192.168.0.45\files how can
> do it by u
ok my original question is how can count the files of ceratin pattern(eg
*.txt) in remote directory .It seems use of glob.glob() for remote
directory is not working .Example I want to count the files in following
shared folder \\192.168.0.45\files how can do it
by using glob.glob()
On Thu, Feb 26
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 made to your original posting. Remember, this isn't a
paid help desk ...
regard
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