From: Kai Grossjohann <kai@emptydomain.de>
Subject: Set modtime of a local file?
Date: Sat, 13 Mar 2004 20:39:08 +0100 [thread overview]
Message-ID: <871xnwo7tv.fsf@emptyhost.emptydomain.de> (raw)
I'm trying to implement the KEEP-DATE flag for the copy-file operation
in Tramp. Depending on circumstances, Tramp reads the source file
into a buffer, then uses write-region to write the target file.
If the source file is local and the target file is remote, then it
works to find out the last modtime of the source file and then invoke
"touch" on the target file. Tramp assumes that the remote system is
Unix-like.
But if the source file is remote and the target file is local, then
I'm stuck. After using write-region to write the buffer contents,
what can I do to make the file on disk match the (remote) source file?
tia,
Kai
next reply other threads:[~2004-03-13 19:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-13 19:39 Kai Grossjohann [this message]
[not found] <20040313234744.31A8860107@imf.math.ku.dk>
2004-03-14 7:58 ` Set modtime of a local file? Lars Hansen
2004-03-14 10:25 ` Kai Grossjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871xnwo7tv.fsf@emptyhost.emptydomain.de \
--to=kai@emptydomain.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).