From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: resuming an interrupted org-publish to ftp Date: Sat, 20 Feb 2016 13:53:50 +0100 Message-ID: <87si0nee5d.fsf@nicolasgoaziou.fr> References: <87vb5vkupc.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX70p-0002Yo-5p for emacs-orgmode@gnu.org; Sat, 20 Feb 2016 07:51:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aX70l-0001v9-Qy for emacs-orgmode@gnu.org; Sat, 20 Feb 2016 07:51:50 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:40486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX70l-0001uy-K9 for emacs-orgmode@gnu.org; Sat, 20 Feb 2016 07:51:47 -0500 In-Reply-To: <87vb5vkupc.fsf@free.fr> (Julien Cubizolles's message of "Thu, 11 Feb 2016 18:44:47 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Julien Cubizolles Cc: emacs-orgmode@gnu.org Hello, Julien Cubizolles writes: > I have a huge number of files to publish to a ftp server (I had to > reexport them after an Org upgrade) and org-publish fails because the > ftp server closes the connection before the *whole* transfer is > done. And it seems that in this case none of the timestamps used to > control which file has to be uploaded are updated. So I have to start > the whole upload again, it fails again... > > Shouldn't org-publish update the timestamps after each successful upload > of a file, and not wait for the end of the whole upload=C2=A0? Isn't it the case already? ;; Allow chain of publishing functions. (dolist (f publishing-function) (when (org-publish-needed-p filename pub-dir f tmp-pub-dir base-dir) (let ((output (funcall f project-plist filename tmp-pub-dir))) (org-publish-update-timestamp filename pub-dir f base-dir) (run-hook-with-args 'org-publish-after-publishing-hook filename output)))) Regards, --=20 Nicolas Goaziou