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,bbccabff6758b153 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!wn12feed!worldnet.att.net!216.196.98.141!border2.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 03 May 2006 16:18:06 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1146667325.606250.177290@y43g2000cwc.googlegroups.com> <1146674250.488790.59920@i39g2000cwa.googlegroups.com> Subject: Re: operations on files and directories Date: Wed, 3 May 2006 16:18:18 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-zPAEMkg+n297x9mDOvCfOefYxPSACWDOTEtPMcIynfZE9ye3xtJ7RqqMU9rBv6aBgTx9TL0BZxrgnnW!PjstGhriYxmhjSUfSXuwMUU9IUiyjoNGXm/2D8zI3On96F+63Mwm7wUb+xnJMqIA2HirTy6m+YfG X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:4053 Date: 2006-05-03T16:18:18-05:00 List-Id: "Martin Dowie" wrote in message news:PamdnciF08LDfcXZnZ2dnUVZ8qadnZ2d@bt.com... > > 2 - i meant the creation time. is the package > > "Ada.Directories.Information" only ok for win32? > > Depends on your compiler - the one on my website works fine for Win32. The standard suggests that an implementation provide a package Ada.Directories.Information. It's doesn't specify what's in it. The AARM gives recommended minimum implementations for Windows and Unix (and Unix-like) systems. There are some commonalities, but for the most part these things are target-dependent. That's because what's provided varies from OS to OS. (And the purpose of this package is to provide convenient access to those differences.) Note that there is no Creation_Time routine in the recommended Unix version of Ada.Directories.Information, because that information is not provided by Unix systems. So your original problem is one that cannot be done portably, simply because it can't be done at all on Unix. (Comparing Modification_Times is always portable, and Last_Access_Time is provided by both the Windows and Unix recommended packages, so that can usually be compared as well. But not creation times). As far as your first question goes, it's very rare that you would only want to know if the files are the same; usually you would want to know where and why they are different. Also, "the same" has different meanings for different kinds of files -- strict binary comparison isn't always useful. So it's usually necessary to write whatever it is that you need. (This is not an operation which is commonly provided by predefined packages.) Randy.