From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tramp and recursive file operations Date: Wed, 30 Sep 2009 09:45:40 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254327267 7798 80.91.229.12 (30 Sep 2009 16:14:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 16:14:27 +0000 (UTC) Cc: "tramp-devel@gnu.org" , "emacs-devel@gnu.org" To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 30 18:14:20 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mt1op-0007bn-1M for ged-emacs-devel@m.gmane.org; Wed, 30 Sep 2009 18:14:19 +0200 Original-Received: from localhost ([127.0.0.1]:49544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt1oj-0004Uf-P2 for ged-emacs-devel@m.gmane.org; Wed, 30 Sep 2009 12:14:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MszVE-000440-Q0 for emacs-devel@gnu.org; Wed, 30 Sep 2009 09:45:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MszV9-00041S-Ed for emacs-devel@gnu.org; Wed, 30 Sep 2009 09:45:56 -0400 Original-Received: from [199.232.76.173] (port=50221 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MszV9-00041N-16; Wed, 30 Sep 2009 09:45:51 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:16775 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MszV8-0004zQ-79; Wed, 30 Sep 2009 09:45:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEALr9wkrO+KOO/2dsb2JhbACBUddHhCcEhw8 X-IronPort-AV: E=Sophos;i="4.44,480,1249272000"; d="scan'208";a="46839784" Original-Received: from 206-248-163-142.dsl.teksavvy.com (HELO pastel.home) ([206.248.163.142]) by ironport2-out.pppoe.ca with ESMTP; 30 Sep 2009 09:45:40 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id AEE4F8109; Wed, 30 Sep 2009 09:45:40 -0400 (EDT) In-Reply-To: (Michael Albinus's message of "Wed, 30 Sep 2009 10:06:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115805 Archived-At: >> It seems OK, but I'd rather see them renamed to copy-file-recursive and >> delete-file-recursive at the same time and made independent from dired. > OK. Looking outside dired, there is already delete-directory, good for > empty directories. Maybe we add an optional parameter RECURSIVE? Sounds OK, except for the fact that delete-directory is implemented in C, so you'd have to code the recursion in C as well. > A copy-directory function does not exist. What about allowing the first > parameter of copy-file to be a directory name? This would imply to copy > recursively. If we were starting over from scratch, that would be fine, but I'm afraid that some code somewhere relies on the fact that copy-file only copies files and not directories. And of course, copy-file is also implemented in C, so you'd have to code the recursion in C as well. Stefan