Namespace for Unix File Permission checker

Namespace for Unix File Permission checker

am 06.08.2005 21:17:07 von Bengt-Arne Fjellner

Hi I'm working on a module to check if another user may read/write... a
named file/directory
Namespace for that? File::Permissions or any better suggestions.

Bengt-Arne Fjellner
Luleå Technical University
LTU Skellefteå
Skellefteå
Sweden

Re: Namespace for Unix File Permission checker

am 07.08.2005 08:52:28 von Christian Winter

Bengt-Arne Fjellner schrieb:
> Hi I'm working on a module to check if another user may read/write... a
> named file/directory
> Namespace for that? File::Permissions or any better suggestions.

IMHO one level deeper would be appropriate.
File::Permissions::Unix would leave room for other
permission models (File::Permissions::Posix,
File::Permissions::Win32 etc.)

One could then build a generic File::Permissions
module on top of all specific modules and use something like
use File::Permissions ':Unix';
or even let File::Permissions default to the most commonly
used standard for the current operating system.

-Chris

Re: Namespace for Unix File Permission checker

am 07.08.2005 19:11:17 von Bengt-Arne Fjellner

"Christian Winter" skrev i meddelandet
news:42f5af9e$0$6992$9b4e6d93@newsread2.arcor-online.net...
> Bengt-Arne Fjellner schrieb:
>> Hi I'm working on a module to check if another user may read/write... a
>> named file/directory
>> Namespace for that? File::Permissions or any better suggestions.
>
> IMHO one level deeper would be appropriate.
> File::Permissions::Unix would leave room for other
> permission models (File::Permissions::Posix,
> File::Permissions::Win32 etc.)
>
> One could then build a generic File::Permissions
> module on top of all specific modules and use something like
> use File::Permissions ':Unix';
> or even let File::Permissions default to the most commonly
> used standard for the current operating system.
>
> -Chris

I think your right

Bengt-Arne Fjellner
Luleå Technical University
LTU Skellefteå
Skellefteå
Sweden