all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* feature request: copy-file option to match cp -u
@ 2011-08-29 18:49 Sam Steingold
  0 siblings, 0 replies; only message in thread
From: Sam Steingold @ 2011-08-29 18:49 UTC (permalink / raw)
  To: emacs-devel

Hi,
it would be nice if one could tell copy-file to actually copy only newer
files, i.e., something like this:

(and (file-newer-than-file-p
      from (if (file-directory-p to)
               (expand-file-name (file-name-base from) to)
               to))
     (copy-file from to t))

I think it could be controlled by the 4th argument KEEP-TIME (it appears
that people who want to preserve time would probably want to avoid
copying older files over newer ones) or by a new argument.

Thanks.

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://pmw.org.il http://mideasttruth.com http://palestinefacts.org
http://camera.org http://memri.org http://honestreporting.com
Hard work has a future payoff.  Laziness pays off NOW.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-29 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-29 18:49 feature request: copy-file option to match cp -u Sam Steingold

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.