"Gigs_" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
Gabriel Genellina wrote:
> En Thu, 01 Feb 2007 21:33:03 -0300, Gigs_ <[EMAIL PROTECTED]> escribió:
>
>> class CVisitor(FileVisitor):
>> def __init__(self, fromdir, todir):
>> self.fromdirLen = len(fromdir) + 1
Jussi Salmela wrote:
> Gigs_ kirjoitti:
>> hi people
>>
>> I have problem with this example, not actually the problem, but
>> [code]
>> class FileVisitor(object):
>> def __init__(self, data=None):
>> self.context = data
>> def run(self, startdir=os.curdir):
>> os.path.walk(s
Gigs_ kirjoitti:
> hi people
>
> I have problem with this example, not actually the problem, but
> [code]
> class FileVisitor(object):
> def __init__(self, data=None):
> self.context = data
> def run(self, startdir=os.curdir):
> os.path.walk(startdir, self.visitor, None)
>
Gabriel Genellina wrote:
> En Thu, 01 Feb 2007 21:33:03 -0300, Gigs_ <[EMAIL PROTECTED]> escribió:
>
>> class CVisitor(FileVisitor):
>> def __init__(self, fromdir, todir):
>> self.fromdirLen = len(fromdir) + 1# here is my problem
>> self.todir = todir
>> Fil
Gabriel Genellina wrote:
> En Thu, 01 Feb 2007 21:33:03 -0300, Gigs_ <[EMAIL PROTECTED]> escribió:
>
>> class CVisitor(FileVisitor):
>> def __init__(self, fromdir, todir):
>> self.fromdirLen = len(fromdir) + 1# here is my problem
>> self.todir = todir
>> Fil
En Thu, 01 Feb 2007 21:33:03 -0300, Gigs_ <[EMAIL PROTECTED]> escribió:
> class CVisitor(FileVisitor):
> def __init__(self, fromdir, todir):
> self.fromdirLen = len(fromdir) + 1# here is my problem
> self.todir = todir
> FileVisitor.__init__(self, fromdir)
>
hi people
I have problem with this example, not actually the problem, but
[code]
class FileVisitor(object):
def __init__(self, data=None):
self.context = data
def run(self, startdir=os.curdir):
os.path.walk(startdir, self.visitor, None)
def visitor(self, data, dirn