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-Thread: 103376,7eef1e530c6ffb21 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: procedure Make_File_Gone (Name : in String); Date: Wed, 20 Jul 2011 10:12:18 +0300 Organization: Tidorum Ltd Message-ID: <98ndejFa5jU1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net jjxRfyjI8zpt0TEYwnweiwb/ZUnFlZ6UXXHYX0PlAU5O60NNVj Cancel-Lock: sha1:5/s5jFW02sxoUaZG/My6N+AplsE= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:20232 Date: 2011-07-20T10:12:18+03:00 List-Id: tmoran@acm.org wrote: > What's a good name for a procedure that does an > Ada.Directories.Delete_File if the file exists, and silently returns if > the file is already gone. Difficult question. In a multi-process system the procedure cannot, of course, guarantee that the file does not (again) exist when the procedure returns, so "Make_File_Gone" promises too much. Perhaps Delete_Possibly_Existing_File. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .