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

Does not create needed subdirectories #11

Open
oddhack opened this issue Apr 26, 2016 · 1 comment
Open

Does not create needed subdirectories #11

oddhack opened this issue Apr 26, 2016 · 1 comment

Comments

@oddhack
Copy link

oddhack commented Apr 26, 2016

I tried this out on an exported XML containing 40 files, many of which were of the same name as subdirectories (e.g.
<title>OpenGL Common/API Design</title>
being one page, and
<title>OpenGL Common/API Design/Agenda</title>
being another), and found that the converter didn't seem to be creating any subdirectories beyond the top-level one - where what I would hope to see is API_Design.md and API_Design/Agenda.md. I saw a lot of error messages like:

Creating output directory test

PHP Warning: fopen(test/OpenGL_Common/API_Design/Agenda.md): failed to open stream: No such file or directory in /home/tree/git/vulkan.wiki/tmp/convert.php on line 114
PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/tree/git/vulkan.wiki/tmp/convert.php on line 115
PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/tree/git/vulkan.wiki/tmp/convert.php on line 116
PHP Warning: fopen(test/OpenGL_Common/API_Design/Binding_Model_Issue_Tracking.md): failed to open stream: No such file or directory in /home/tree/git/vulkan.wiki/tmp/convert.php on line 114
PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/tree/git/vulkan.wiki/tmp/convert.php on line 115
PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /home/tree/git/vulkan.wiki/tmp/convert.php on line 116

If I went through and manually mkdir'ed all the subdirectories it was complaining about (like API_Design above), running the converter again would create files in those subdirectories, but the process had to be manually repeated at every level of the subdirectory hierarchy. Is there any control over this? I'm a complete noob at PHP so can't be much help in diagnosing, unfortunately.

@jpswade
Copy link

jpswade commented Jul 17, 2016

I too had this problem.

The fix seems to be here:

#10

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