Re: how copy file on linux?

Liste des GroupesRevenir à cl c  
Sujet : Re: how copy file on linux?
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.c
Date : 27. Jun 2024, 00:35:00
Autres entêtes
Organisation : None to speak of
Message-ID : <87v81vs57v.fsf@nosuchdomain.example.com>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13)
Thiago Adams <thiago.adams@gmail.com> writes:
How to copy a file on linux keeping the original file information?
timestamp etc?
>
Or in other words the equivalent of CopyFileA from windows.

comp.unix.programmer is likely to give you better answers.  I don't
think POSIX defines any functions that copy files.

If I uunderstand correctly, you want to do the equivalent of "cp -p",
but from C rather than from a shell.  You might consider using system(),
but that has some drawbacks, and there are probably better ways.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Date Sujet#  Auteur
26 Jun 24 * how copy file on linux?10Thiago Adams
26 Jun 24 +- Re: how copy file on linux?1Janis Papanagnou
27 Jun 24 +* Re: how copy file on linux?2Keith Thompson
27 Jun 24 i`- Re: how copy file on linux?1Lew Pitcher
27 Jun 24 +* Re: how copy file on linux?2Lawrence D'Oliveiro
28 Jun 24 i`- Re: how copy file on linux?1Bonita Montero
28 Jun 24 `* Re: how copy file on linux?4Bonita Montero
29 Jun 24  `* Re: how copy file on linux?3Malcolm McLean
29 Jun 24   `* Re: how copy file on linux?2Lew Pitcher
29 Jun 24    `- Re: how copy file on linux?1Lew Pitcher

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal