Re: [Tutor] Problem with os.access function. [semantic error, if check does not work]

2005-12-26 Thread Panagiotis Atmatzidis
Hello, Thank you both for the tip's and the interesting links. I resolved my problem easily using another function, os.path.isdir(x) which was more specific. Best Regards. On 12/24/05, bob <[EMAIL PROTECTED]> wrote: > At 05:20 AM 12/24/2005, Panagiotis Atmatzidis wrote: > >Hello, > > > >I am wri

Re: [Tutor] Problem with os.access function. [semantic error, if check does not work]

2005-12-25 Thread Alan Gauld
t; <[EMAIL PROTECTED]> To: "Python Tutor" Sent: Saturday, December 24, 2005 1:20 PM Subject: [Tutor] Problem with os.access function. [semantic error,if check does not work] Hello, I am writing a function in order to check if a directory exists. If exists the functions must do not

Re: [Tutor] Problem with os.access function. [semantic error, if check does not work]

2005-12-24 Thread bob
At 05:20 AM 12/24/2005, Panagiotis Atmatzidis wrote: >Hello, > >I am writing a function in order to check if a directory exists. If >exists the functions must do nothing, otherwise must check the users >permissions and if it's possible create the dir. Looking at pydoc's >httpd I found the module "o

[Tutor] Problem with os.access function. [semantic error, if check does not work]

2005-12-24 Thread Panagiotis Atmatzidis
Hello, I am writing a function in order to check if a directory exists. If exists the functions must do nothing, otherwise must check the users permissions and if it's possible create the dir. Looking at pydoc's httpd I found the module "os" and the function "access". From the http-doc: access(..