Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiDocRef's path doesn't allow subdirectories #44

Closed
mortenpi opened this issue Feb 14, 2023 · 2 comments
Closed

MultiDocRef's path doesn't allow subdirectories #44

mortenpi opened this issue Feb 14, 2023 · 2 comments

Comments

@mortenpi
Copy link
Member

Setting MultiDocRef(path="subdir/packagedir", ...) will fail with:

ERROR: LoadError: IOError: mkdir("/tmp/jl_7pJysb/subdir/packagedir"; mode=0o777): no such file or directory (ENOENT)
Stacktrace:
 [1] uv_error
   @ ./libuv.jl:97 [inlined]
 [2] mkdir(path::String; mode::UInt16)
   @ Base.Filesystem ./file.jl:185
 [3] mkdir
   @ ./file.jl:177 [inlined]
 [4] cptree(src::String, dst::String; force::Bool, follow_symlinks::Bool)
   @ Base.Filesystem ./file.jl:342
 [5] cp(src::String, dst::String; force::Bool, follow_symlinks::Bool)
   @ Base.Filesystem ./file.jl:382
 [6] make_output_structure(docs::Vector{MultiDocumenter.MultiDocRef}, prettyurls::Bool)
   @ MultiDocumenter ~/.julia/packages/MultiDocumenter/35Gnf/src/MultiDocumenter.jl:186
 [7] make(outdir::String, docs::Vector{Any}; assets_dir::String, brand_image::Nothing, custom_stylesheets::Vector{Any}, custom_scripts::Vector{Any}, search_engine::MultiDocumenter.SearchConfig, prettyurls::Bool)
   @ MultiDocumenter ~/.julia/packages/MultiDocumenter/35Gnf/src/MultiDocumenter.jl:115

It should probably just mkpath(dirname(ref.path))?

@pfitzseb
Copy link
Member

pfitzseb commented Feb 14, 2023

mkpath(dirname(outpath)) should do the trick, yes :)

@pfitzseb
Copy link
Member

Fixed by 9d5566c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants