* lisp/org-compat.el (directory-files-recursively): Remove compatibility function, no longer needed. * lisp/ox-publish.el (org-publish--expand-file-name): (org-publish-org-to): (org-publish-collect-index): (org-publish--store-crossrefs): (org-publish-resolve-external-link): Preserve symlinks in file name. (org-publish-get-base-files): Follow symlink directories. (org-publish-get-project-from-filename): Preserve symlinks in file name. Do not use `file-in-directory-p', which ignores symlinks. Reported-by: Michel Damiens <michel.damiens@gmail.com> <http://lists.gnu.org/r/emacs-orgmode/2018-02/msg00186.html>
* lisp/ox-publish.el (org-publish-get-base-files): Make sure to remove directories. * testing/examples/pub/file.txt: * testing/examples/pub/noextension: New files. * testing/lisp/test-ox-publish.el (test-org-publish/base-extension): New test.
* testing/examples/pub/a.org: * testing/examples/pub/b.org: * testing/examples/pub/sub/c.org: * testing/lisp/test-ox-publish.el: New files.