emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Julien Cubizolles <j.cubizolles@free.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: resuming an interrupted org-publish to ftp
Date: Sat, 20 Feb 2016 13:53:50 +0100	[thread overview]
Message-ID: <87si0nee5d.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87vb5vkupc.fsf@free.fr> (Julien Cubizolles's message of "Thu, 11 Feb 2016 18:44:47 +0100")

Hello,

Julien Cubizolles <j.cubizolles@free.fr> 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 ?

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,

-- 
Nicolas Goaziou

      reply	other threads:[~2016-02-20 12:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 17:44 resuming an interrupted org-publish to ftp Julien Cubizolles
2016-02-20 12:53 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87si0nee5d.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=j.cubizolles@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).