I've been poring over the internet and the documentation for about two days now trying to figure this out. I'm trying to create a script that, when run, prompts for a string and then creates a folder in a specific directory using that string. I've changed it a lot, gotten numerous different errors, when I don't get an error nothing happens or the folder is created outside of the directory I'm aiming for.
I've finally turned to stack overflow; a guiding hand would be very helpful please.
def CreateStory():
'''
Creates a story folder in AdventureMaker>Stories named with the story title,
and creates a single page in that story
'''
story = input('What will you name your story?\n')
stories.append(story)
if Path('C:/Documents/Code/AdventureMaker/Stories/' + story).exists():
print('There is already a story with that name!')
#prompt to add a new page to the story instead, or to try a new name
else:
#create a folder with the story title, then move on to creating the
first page
Path('C:/Documents/Code/AdventureMaker/Stories/' + story).mkdir()