[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature request: copy-file option to match cp -u

From: Sam Steingold
Subject: feature request: copy-file option to match cp -u
Date: Mon, 29 Aug 2011 14:49:09 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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)
     (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.


Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]