If you stat the original file you can get it's permissions. You can then
apply the same permissions to the copied version. It was the only way I
found.
-----Original Message-----
From: Nikola Knezevic [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2001 20:28
To: [EMAIL PROTECTED]
Subject: Re: [Perl-unix-users] How to find file permissions?
Dana 14.01.01, Nikola Knezevic napisa:
> How can I find file permission (opposite of chmod??)
> fcntl() doesn't do what I need...
Never mind, I found what I've been searching for - stat()...
BTW, how to copy a file, but to preserve permissions and status.
File::Copy doesn't work as expected.
--
+- -- - --- ----[ http://users.hemo.net/indy ]---- -- -
Knezevic Nikola :: [EMAIL PROTECTED]
hemo.net
- --- -- ----- ----==----===---------===-----------+
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users