emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* resuming an interrupted org-publish to ftp
@ 2016-02-11 17:44 Julien Cubizolles
  2016-02-20 12:53 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Cubizolles @ 2016-02-11 17:44 UTC (permalink / raw)
  To: emacs-orgmode

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 ?

In the meantime, I'd like to resort to a "manual" ftp upload and inform
org-publish that the ftp site is up to date. I've looked into the
timestamps, but I don't see how I could put the right information into
it.

Julien.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: resuming an interrupted org-publish to ftp
  2016-02-11 17:44 resuming an interrupted org-publish to ftp Julien Cubizolles
@ 2016-02-20 12:53 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-02-20 12:53 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-20 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-11 17:44 resuming an interrupted org-publish to ftp Julien Cubizolles
2016-02-20 12:53 ` Nicolas Goaziou

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).