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

[MacPerl] stat() equivalent for owner, group, mode?



I'm working on a MacPerl script to take a snapshot of an AppleShare IP
server's directory structure (and later do some things with it).  
Part of the information I need is the directory permissions, owner,
and group.  On Unix, of course, I'd just use stat(), and since I have
many Unix scripts which do similar directory traversals, I 
copied the code over from one, with various modifications to path
delimiters and such.

However, I was disappointed to find that stat() doesn't work very well
for the information I need.  The mode always seems to be "16895", no
matter what the sharing permissions are, and the owner and group are
always 0.  

I looked at Mac::Files and a few other modules and didn't see anything
obvious which would provide the information I need.  

So my question is, is there a way to get these three pieces of information
(permissions, owner, and group for a directory on an AppleShare server)
using MacPerl?

-- 
Tom Holub (tom_holub@LS.Berkeley.EDU)
Letters & Science Computer Resources
154 LeConte Hall (510-642-9069)

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