GNU bug report logs - #28834
25.1; dired-do-copy: allow to copy into a nonexistent directory

Previous Next

Package: emacs;

Reported by: "alexei28" <alexei28 <at> gmail.com>

Date: Sat, 14 Oct 2017 14:53:01 UTC

Severity: wishlist

Tags: patch

Found in version 25.1

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#28834: closed (25.1; dired-do-copy: allow to copy into a
 nonexistent directory)
Date: Sat, 21 Oct 2017 04:14:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 21 Oct 2017 13:13:34 +0900
with message-id <878tg55ea9.fsf <at> gmail.com>
and subject line Re: bug#28834: 25.1; dired-do-copy: allow to copy into a nonexistent directory
has caused the debbugs.gnu.org bug report #28834,
regarding 25.1; dired-do-copy: allow to copy into a nonexistent directory
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
28834: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28834
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "alexei28" <alexei28 <at> gmail.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 25.1; Dired+ not copy file to nonexistent directory.
Date: Sat, 14 Oct 2017 13:54:45 +0300
[Message part 3 (text/plain, inline)]
Hi!

 

Windows 10, Emacs 25.1, Dired+

 

I want to copy file from "d:/TEMP/test/test.txt" to nonexistent directory
"d:/TEMP/test/new/" in tby package Dired+

 

My steps in Dired+ buffer:

1. Run command "split-window-vertically"

2. In top and bottom buffers has directory "d:/TEMP/test/"

3. Press "Shift c" (copy file)

4. In minibuffer show message: "Copy text.txt to : d:/TEMP/test/"

5. I replace target path by: "d:/TEMP/test/new/test.txt" and press return

6. I get the next error message:

 

Copy 'd:/TEMP/test/test.txt' to 'd:/TEMP/test/new/test.txt' failed:

(file-error Copying file Operation not permitted d:/TEMP/test/test.txt
d:/TEMP/test/new/test.txt)

 

It would be good if Emacs can autocreate not exist directory when copy/move
files.

Thank you.

 

Alex

[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Tino Calancha <tino.calancha <at> gmail.com>
To: 28834-done <at> debbugs.gnu.org
Subject: Re: bug#28834: 25.1;
 dired-do-copy: allow to copy into a nonexistent directory
Date: Sat, 21 Oct 2017 13:13:34 +0900
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Tino Calancha <tino.calancha <at> gmail.com>
>> Cc: 28834 <at> debbugs.gnu.org,  drew.adams <at> oracle.com
>> Date: Tue, 17 Oct 2017 13:49:34 +0900
>> 
>> * I have changed the new function name to `dired-maybe-create-dirs'
>>   as Drew suggested.
>> * I think I have addressed all your comments as well.
>
> Thanks, this LGTM.
Added feature into master branch as commit
"Allow to copy/rename file into a non-existent dir"
(cb29f41624e5163a0aea4bfc98591e683807a2f8)


This bug report was last modified 7 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.