in reply to Find new files in tree

i believe -M $_ < $age and -f _ will offer a little more improvement over grinder's suggestion. (this assumes there will be fewer modified things than files, so the second test is performed less often. )

but i'd use Win32::API and call native OS commands. they *should* be faster. you can get documentation for the win32 sdk online at msdn

~Particle *accelerates*

Replies are listed 'Best First'.
Re: Re: Find new files in tree
by belg4mit (Prior) on Apr 29, 2002 at 14:02 UTC
    Re: win32::API
    Eh hemm? Win32::ChangeNotify? It uses Win32::IPC, since IIRC, the windows kernel tracks file modifications already (which is why you can have explorer auto-refresh).

    --
    perl -pew "s/\b;([mnst])/'$1/g"

      Eh hemm? Win32::ChangeNotify?
      no. as i understand the original poster's requirement:
      I have access to a huge fileshare (Win NT) and want to get an overview of what's happened the last n days
      weini want's a post-fact report. Win32::ChangeNotify -- from the doc:
      Monitor events related to files and directories
      allows you to monitor files and directories in real-time. your suggestion meets a different requirement than that mentioned by the original poster.

      ~Particle *accelerates*

        Indeed. *sigh*

        Thou shalt not post with 4 hours of sleep
        Thou shalt not post with 4 hours of sleep
        Thou shalt not post with 4 hours of sleep
        ...

        --
        perl -pew "s/\b;([mnst])/'$1/g"