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,1295f20108acc30c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada.Directories.Copy_File behavior Date: Fri, 25 Feb 2011 20:34:07 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1298687650 8678 69.95.181.76 (26 Feb 2011 02:34:10 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 26 Feb 2011 02:34:10 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-RFC2646: Format=Flowed; Original Xref: g2news2.google.com comp.lang.ada:18577 Date: 2011-02-25T20:34:07-06:00 List-Id: wrote in message news:ijpgnh$ec8$1@speranza.aioe.org... > If the Target_Name file already exists, does Copy_File raise an exception, > or does it replace the old file? I can't seem to find where the behavior > is specified in the ARM. The Janus/Ada implementation of Ada.Directories has the following change note: Corrected Copy_File to overwrite existing files, as A.16(123/2) makes it clear that it should work the same as Create (which can overwrite existing files). which points to the paragraph that answers your question. (Which is another way of saying that I didn't remember the answer to this until I happened across that note. And that is annoying since this package was originally my design and mostly was worded by me. Sad to think I've already forgotten about it...I fear my wetware needs a RAM upgrade!) Randy.