Closed torodean closed 5 months ago
In the event that the folder DOES exist the output is
Updating input file. Directory already exists: ./img Renamed 0 file(s). Destination folder set to: creatures/humanoids /home/awtorode/DnD/templates Output file folder set to: ../campaign/creatures/humanoids/ Output file: ../campaign/creatures/humanoids/Zentikis.html folder=creatures/humanoids
Zentikis[dnd-image]=img/Zentikis.jpg;Created by Bing AI image generator;The Zentikis hunter-gatherers. Image NOT found: img/Zentikis.jpg. Processing img/Zentikis.jpg.
Zentikis[dnd-info]=The Zentikis are a race of small humanoid creatures. They developed their small stature over a mellenia as a way to survive the limited resources of the areas they live in. The Zentikis are primarily hunter-gatherers who heavily rely on their natural surroundings for any magic and defenses. They wear tiki-like masks and usually have spears and small shields on hand. They travel in groups and always stay in groups. These small creatures form small villages where they have tends and huts build into their surroundings.
item: The Zentikis are a race of small humanoid creatures. They developed their small stature over a mellenia as a way to survive the limited resources of the areas they live in. The Zentikis are primarily hunter-gatherers who heavily rely on their natural surroundings for any magic and defenses. They wear tiki-like masks and usually have spears and small shields on hand. They travel in groups and always stay in groups. These small creatures form small villages where they have tends and huts build into their surroundings.
HTML file created: ../campaign/creatures/humanoids/Zentikis.html Image file does not exist: img/Zentikis.jpg Directory ../campaign/creatures/humanoids/img does not exist. Creating directory... Directory created: ../campaign/creatures/humanoids/img Directory already exists: ../campaign/creatures/humanoids/img Copying img/Zentikis (1).jpg to ../campaign/creatures/humanoids/img File img/Zentikis (1).jpg copied to ../campaign/creatures/humanoids/img Directory already exists: ../campaign/creatures/humanoids/img Directory already exists: ../campaign/creatures/humanoids/img Copying img/Zentikis (2).jpg to ../campaign/creatures/humanoids/img File img/Zentikis (2).jpg copied to ../campaign/creatures/humanoids/img Directory already exists: ../campaign/creatures/humanoids/img Directory already exists: ../campaign/creatures/humanoids/img Copying img/Zentikis (3).jpg to ../campaign/creatures/humanoids/img File img/Zentikis (3).jpg copied to ../campaign/creatures/humanoids/img Directory already exists: ../campaign/creatures/humanoids/img Directory already exists: ../campaign/creatures/humanoids/img Copying img/Zentikis (4).jpg to ../campaign/creatures/humanoids/img File img/Zentikis (4).jpg copied to ../campaign/creatures/humanoids/img
Since the folder is arbitrary and the creator app searches for it, the folder cannot just be created (it may be in an undesired location). I added a warning for this case and fixed it so that the files get created in the templates folder instead of a weird new folder.
Describe the bug When creating a page via an input file with the creator, the page generation messes up file locations if the folder does not exist.
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context Creator app output follows as
Updating input file. Directory already exists: ./img Renamed 0 file(s). Destination folder set to: creatures/humanoids /home/awtorode/DnD/templates Output file folder set to: /home/awtorode/DnD/templates Output file: /home/awtorode/DnD/templatesZentikis.html folder=creatures/humanoids
Zentikis[dnd-image]=img/Zentikis.jpg;Created by Bing AI image generator;The Zentikis hunter-gatherers. Image NOT found: img/Zentikis.jpg. Processing img/Zentikis.jpg.
Zentikis[dnd-info]=The Zentikis are a race of small humanoid creatures. They developed their small stature over a mellenia as a way to survive the limited resources of the areas they live in. The Zentikis are primarily hunter-gatherers who heavily rely on their natural surroundings for any magic and defenses. They wear tiki-like masks and usually have spears and small shields on hand. They travel in groups and always stay in groups. These small creatures form small villages where they have tends and huts build into their surroundings.
item: The Zentikis are a race of small humanoid creatures. They developed their small stature over a mellenia as a way to survive the limited resources of the areas they live in. The Zentikis are primarily hunter-gatherers who heavily rely on their natural surroundings for any magic and defenses. They wear tiki-like masks and usually have spears and small shields on hand. They travel in groups and always stay in groups. These small creatures form small villages where they have tends and huts build into their surroundings.
HTML file created: /home/awtorode/DnD/templatesZentikis.html Image file does not exist: img/Zentikis.jpg Directory /home/awtorode/DnD/templatesimg does not exist. Creating directory... Directory created: /home/awtorode/DnD/templatesimg Directory already exists: /home/awtorode/DnD/templatesimg Copying img/Zentikis (1).jpg to /home/awtorode/DnD/templatesimg File img/Zentikis (1).jpg copied to /home/awtorode/DnD/templatesimg Directory already exists: /home/awtorode/DnD/templatesimg Directory already exists: /home/awtorode/DnD/templatesimg Copying img/Zentikis (2).jpg to /home/awtorode/DnD/templatesimg File img/Zentikis (2).jpg copied to /home/awtorode/DnD/templatesimg Directory already exists: /home/awtorode/DnD/templatesimg Directory already exists: /home/awtorode/DnD/templatesimg Copying img/Zentikis (3).jpg to /home/awtorode/DnD/templatesimg File img/Zentikis (3).jpg copied to /home/awtorode/DnD/templatesimg Directory already exists: /home/awtorode/DnD/templatesimg Directory already exists: /home/awtorode/DnD/templatesimg Copying img/Zentikis (4).jpg to /home/awtorode/DnD/templatesimg File img/Zentikis (4).jpg copied to /home/awtorode/DnD/templatesimg