commit bd0d2ed5b2631e489b2902f9ddac50e0546cced5
Author: Richard Kimberly Heck <[email protected]>
Date:   Wed Sep 11 20:54:42 2019 -0400

    Fix bug #11636.
    
    Directories are created when files are copied, so we do not need
    to do it prospectively here.
    
    (cherry picked from commit 05a446b77c5eaeb8ba1982d900bd3ad6f6689139)
---
 src/insets/InsetInclude.cpp |    1 -
 status.23x                  |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index 19fbeae..9c00bba 100644
--- a/src/insets/InsetInclude.cpp
+++ b/src/insets/InsetInclude.cpp
@@ -537,7 +537,6 @@ void InsetInclude::latex(otexstream & os, OutputParams 
const & runparams) const
        string exppath = incfile;
        if (!runparams.export_folder.empty()) {
                exppath = makeAbsPath(exppath, 
runparams.export_folder).realPath();
-               FileName(exppath).onlyPath().createPath();
        }
 
        // write it to a file (so far the complete file)
diff --git a/status.23x b/status.23x
index 7f4232e..b32797a 100644
--- a/status.23x
+++ b/status.23x
@@ -105,6 +105,9 @@ What's new
 - Fix LaTeX error with Canadian French as second language. LyX now uses
   the (recommended) babel option "acadian" rather than "canadien".
 
+- Do not create unnecessary directories when exporting from the command
+  line (bug 11636).
+
 
 * USER INTERFACE
 

Reply via email to