[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Problem with FSpIterateDirectory



At 11:02 -0700 1999.08.09, Rob Sirota wrote:
> FSpIterateDirectory($SDKVol,
>      0,
>      sub {
>       local($temp) = @_;
>       if (-f $temp) {
>        print "File: ", $temp, "\n";
>        FSpRstFLock($temp) or warn $^E;    # Unlock the file.
>        FSpDelete($temp);    # Delete the file.
>       }
>       return 0;
>      },
>      "");
>
>if I only have the FSpRstFLock() to unlock the file I see all of the
>files..
>
>Any suggestions?

Well, personally, I never use FSpDelete or FSpIterateDirectory, opting for
using unlink() and File::Find::find() instead.  FSpSetFLock and FSpRstFLock
can be "emulated" with chmod 0666 and chmod 0444, too.  That may or may not
all help you out.  :)

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org