From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6482d0ae6dcb1b4c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-26 15:16:28 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!nntp5.savvis.net!uunet!dfw.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: if file exist User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Thu, 26 Sep 2002 22:14:35 GMT Content-Type: text/plain; charset=us-ascii References: <3d9245da.259420486@news.cis.dfn.de> <3D933A6B.5000105@cogeco.ca> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:29363 Date: 2002-09-26T22:14:35+00:00 List-Id: "Warren W. Gay VE3WWG" writes: > Nick Roberts wrote: > > On 23 Sep 2002 06:38:22 -0600, Kilgallen@SpamCop.net (Larry Kilgallen) > > strongly typed: > > > >>On some operating systems the existence of a file for which the user > >>lacks read permission cannot be detected. A general solution for > >>detecting unreadable files is not possible. > > On most file systems, when you don't have the permission(s) > to read the _directory_, you cannot determine if the file > exists or not (within that directory). This is because > the directory itself is unreadable by you, and intentially > so! So this is another example of how a general solution > is not possible, and this applies to _most_ O/S in use, > where security at the directory level is possible. I don't agree that "a general solution is not possible". A File_Exists return Boolean function makes perfect sense. Of course it returns False if the file is invisible to the current process (because it "exists" in an inaccessible directory). To *this* process, that file does not exist. - Bob