[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] resuming an interrupted org-publish to ftp
From: |
Nicolas Goaziou |
Subject: |
Re: [O] resuming an interrupted org-publish to ftp |
Date: |
Sat, 20 Feb 2016 13:53:50 +0100 |
Hello,
Julien Cubizolles <address@hidden> 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