My code is something like this:
from pathlib import Path
def make_dir(dirr):
if Path(dirr).exists() == False:
Path.mkdir(dirr)
make_dir('output')
'output' directory doesn't exist. When I'm trying to create it, I get errors, including AttributeError: 'str' object has no attribute '_closed'
.
What am I doing wrong?