RE: File and directory permissions in windows

2006-10-23 Thread Tim Golden
[ismael] | My objective is check if some directories exist and if the | user that execute the perl script has access to some files | and directories. If one of this checkpoints failed the | execution will be aborted. If all of then finish ok | the execution will continue. It's simply this. I th

RE: File and directory permissions in windows

2006-10-23 Thread ismael
No feel guilty because all of us have a lot of things to do and usualy we dont have time to do it. My objective is check if some directories exist and if the user that execute the perl script has access to some files and directories. If one of this checkpoints failed the execution will be aborted.

RE: File and directory permissions in windows

2006-10-23 Thread Tim Golden
[ismael] | I have some problems to get the the permissions on windows. I | use a simple code that run perfectly in UNIX but give me wrong | information on Windows. I found this code searching by google: [... snip ...] | is there a solution for this?, another library or code? | Anything that i

File and directory permissions in windows

2006-10-23 Thread ismael
Hi all I have some problems to get the the permissions on windows. I use a simple code that run perfectly in UNIX but give me wrong information on Windows. I found this code searching by google: import os import stat print os.stat('fichero.txt') st = os.stat('fichero.txt') mode = st[stat.ST_MOD