From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: yary Newsgroups: gmane.emacs.tramp,gmane.emacs.devel Subject: Re: Tramp and recursive file operations Date: Wed, 30 Sep 2009 08:52:43 -0700 Message-ID: <75cbfa570909300852j3bcba55cw3ae4ac3922a1b0d3@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1254332514 26894 80.91.229.12 (30 Sep 2009 17:41:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Sep 2009 17:41:54 +0000 (UTC) To: "tramp-devel@gnu.org" , "emacs-devel@gnu.org" Original-X-From: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Wed Sep 30 19:41:46 2009 Return-path: Envelope-to: tramp@deer.gmane.org Original-Received: from quimby.gnus.org ([80.91.231.51]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mt3BS-00063d-Q4 for tramp@deer.gmane.org; Wed, 30 Sep 2009 19:41:46 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Mt3C6-0007lE-00 for ; Wed, 30 Sep 2009 19:42:26 +0200 Original-Received: from localhost ([127.0.0.1]:42354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt3BR-0001tQ-Ek for tramp@quimby.gnus.org; Wed, 30 Sep 2009 13:41:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt1UQ-000527-Nu for tramp-devel@gnu.org; Wed, 30 Sep 2009 11:53:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt1UM-0004zo-T2 for tramp-devel@gnu.org; Wed, 30 Sep 2009 11:53:14 -0400 Original-Received: from [199.232.76.173] (port=43343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt1UH-0004xA-V5; Wed, 30 Sep 2009 11:53:06 -0400 Original-Received: from mail-pz0-f181.google.com ([209.85.222.181]:59037) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt1UH-0001Fm-EB; Wed, 30 Sep 2009 11:53:05 -0400 Original-Received: by pzk11 with SMTP id 11so4159690pzk.14 for ; Wed, 30 Sep 2009 08:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=kFU74kUkuwPeJ6h1xQNKhpPnhZAPu/FuAu3XVbq4UcQ=; b=EzkcXNQHrmYRPvM0VYTKy4dVKXhXC+RwxqZzecbGnwo6VFBqvfOMrjHjCggA0Sx+QC rHXxmV6Tw6K00SGw1aoENiXRVTcl2J1dWyKM56z/VV9801Z0MFNvCLuRJGwB+/UsHJsF pJU7Je+GxtxsBN9/5oqPc9NRcnQhK10YQ8R8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=d3EaSUYTqZgcgYiYCxSw50o1KA+O40x1BrHkGpCf0ygqb6NvdY6Oztm2/RPvHOFQKm iQG6dgeu9w3Cn1oQAInlJ1iDp+IMFIOpxd4Htj6Hf/QtzEgM38KT76tlFkP721XnUFUa fVSL4YVgpJdl+yOFIEw8Jy7fAfqAxJwKZVRa4= Original-Received: by 10.142.118.3 with SMTP id q3mr527180wfc.9.1254325983082; Wed, 30 Sep 2009 08:53:03 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: tramp-devel.gnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Errors-To: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Xref: news.gmane.org gmane.emacs.tramp:6969 gmane.emacs.devel:115807 Archived-At: On Wed, Sep 30, 2009 at 1:06 AM, Michael Albinus wrote: .. > OK. Looking outside dired, there is already delete-directory, good for > empty directories. Maybe we add an optional parameter RECURSIVE? > > 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. > > Comments? I like the idea of adding an optional parameter to delete-directory. Is there any existing code that may be using the error-check in copy-file to ensure that the first arg is not a directory? I like the idea of making the existing copy-file smart enough to "do the right thing" when the first argument is a dir, but it could need an optional RECURSIVE parameter if and only if other callers rely on it rejecting directories. -y