[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp and recursive file operations
From: |
Michael Albinus |
Subject: |
Re: Tramp and recursive file operations |
Date: |
Thu, 01 Oct 2009 17:53:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> Maybe the best option is to rename delete-directory to
> delete-directory-internal and then implement a new delete-directory in
> files.el. using it.
Done.
>> So we go with copy-directory? Just DIRNAME and NEWNAME as parameters, or
>> the other ones from copy-file as well?
>
> Whenever I copy a directory, I always use "cp -a", so I'd be tempted to
> say that additional args aren't needed, but that the behavior should
> preserve as much as we can (symlinks, gid, mtime, you name it).
>
>> I guess that we dont't need OK-IF-ALREADY-EXISTS, because if directory
>> NEWNAME already exists, we create a subdirectory.
>
> I'd tend to disagree here: this kind of behavior is very handy
> interactively, but not when called from Lisp code, where you might
> prefer an error (at which point you can then choose to call
> copy-directory again to the subdirectory, or you may prefer to overlay
> the copy on top of the existing tree, tho we don't have any code that
> does it for us yet).
OK, I'll add it next days.
> Stefan
Best regards, Michael.