From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Bug] org-attach-set-directory Date: Tue, 21 Aug 2018 21:27:31 +0200 Message-ID: <87a7pfh658.fsf@nicolasgoaziou.fr> References: <5435337.cR4ELXjRJm@horus> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsENb-0000kA-J7 for emacs-orgmode@gnu.org; Tue, 21 Aug 2018 17:40:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsEMv-0002Tw-O7 for emacs-orgmode@gnu.org; Tue, 21 Aug 2018 17:39:19 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:56035) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fsEMr-0002NV-Tc for emacs-orgmode@gnu.org; Tue, 21 Aug 2018 17:39:15 -0400 In-Reply-To: <5435337.cR4ELXjRJm@horus> (Florian Lindner's message of "Wed, 18 Jul 2018 22:12:46 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Florian Lindner Cc: emacs-orgmode@gnu.org Hello, Florian Lindner writes: > doing C-a s on an entry with an existing attachement produces > > make-directory: Die Datei existiert bereits: /home/florian/test/data/ > > (translation: File already exists) > > Actually, I implemented this functionality with the help of Nicolas Goaziou, but it seems an org mode or emacs upgrade broke it. > > I will try to debug that further, but right now, my time is very limited, only undershot by my elisp knowledge. > > Maybe someone can more quickly fix that... ;-) > > Best, > Florian > > Backtrace: > > Debugger entered--Lisp error: (file-already-exists "Die Datei existiert bereits" "/home/florian/test/mydata") > make-directory-internal("/home/florian/test/mydata") > make-directory("/home/florian/test/mydata" nil) > copy-directory("/home/florian/test/data/c1/32d552-b7bb-43b1-b0d8-c57c00d61f9b" > "/home/florian/test/mydata" t nil t) It looks like "/home/florian/test/mydata" is not a valid directory name. It should end with a forward slash. Regards, -- Nicolas Goaziou