Hello,
Julien Cubizolles <[email protected]> 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