Re: File.canWrite() actually writes stuff

2006-04-03 Thread Mark Wielaard
Hi Gary, On Thu, 2006-03-30 at 10:24 +0100, Gary Benson wrote: I just noticed that File.canWrite() actually writes things in order to check whether they are writable. This seems really wrong to me: just checking something should not modify the filesystem! Does anyone mind if I replace this?

File.canWrite() actually writes stuff

2006-03-30 Thread Gary Benson
Hi all, I just noticed that File.canWrite() actually writes things in order to check whether they are writable. This seems really wrong to me: just checking something should not modify the filesystem! Does anyone mind if I replace this? Cheers, Gary

Re: File.canWrite() actually writes stuff

2006-03-30 Thread Andrew Haley
Gary Benson writes: Hi all, I just noticed that File.canWrite() actually writes things in order to check whether they are writable. This seems really wrong to me: just checking something should not modify the filesystem! Does anyone mind if I replace this? I agree with you. We

Re: File.canWrite() actually writes stuff

2006-03-30 Thread Gary Benson
Andrew Haley wrote: Gary Benson writes: I just noticed that File.canWrite() actually writes things in order to check whether they are writable. This seems really wrong to me: just checking something should not modify the filesystem! Does anyone mind if I replace this? I agree with

Re: File.canWrite() actually writes stuff

2006-03-30 Thread Andrew Haley
Gary Benson writes: That particular bit doesn't write any bytes, but it modifies the file's timestamp. Ah, OK. Nasty. Andrew.