in reply to Re: Re: Re: Moving folders using FTP
in thread Moving folders using FTP

It's not better. It's something else. readdir() gives you the files in a single directory. File::Find gives you all files in a tree.

If the question was "why is File::Find better than recursing through the directory tree oneself using opendir() and readdir()" ... I'd say ... because it's well tested and maintained. You may reinvent the wheel if you feel like it I don't find it necessary.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

  • Comment on Re: Re: Re: Re: Moving folders using FTP

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Moving folders using FTP
by vek (Prior) on Apr 06, 2003 at 21:42 UTC
    Thx Jenda, I should have phrased my question about File::Find a little better.

    -- vek --