needperlhelp has asked for the wisdom of the Perl Monks concerning the following question:

Not sure if this is a perl question. nonetheless i felt like using the wisdom of the monks, here is the situation.
we have a centralized file storage on netapps.
the directory under question is part of the netapps and we access it using unc path from windows machine.
when a directory listing is performed from perl using readdir( or viewed through windows explorer ),often some of the newly created files ( created in the last 30 minutes ) are not getting listed.
Eventually say after an hour or so they show up, the only option to get a current list is to re-login / reboot.

Did any one encounter this problem before and solved the same,suggestions welcomed.

As i only know the file pattern, i can't perform any kind of existence (-e) , file stat test(s)

Replies are listed 'Best First'.
Re: Stale directory listing
by marto (Cardinal) on Aug 14, 2008 at 08:22 UTC
    "when a directory listing is performed from perl using readdir from perl using readdir( or viewed through windows explore ), often some of the newly created files ( created in the last 30 minutes ) are not getting listed."

    So it happens when you are using the Windows OS file manager? I think it is safe to say that this is not a perl specific question. Are you sure your NetApp device and software are properly configured? Are the permissions being set correctly and in a timely fashion? Sounds to me like you need to check the NetApp documentation or search for known problems like this with their systems.

    Martin
Re: Stale directory listing
by Bloodnok (Vicar) on Aug 14, 2008 at 09:16 UTC
    ...sounds like networked file system latency to me - tho' the time (... Eventually say after an hour or so ...) seems somewhat excessive - even for a Windoze box.

    A user level that continues to overstate my experience :-))