TypeError: expected str, bytes or os.PathLike object, not NoneType

I was creating the function def create_train_val_dirs(root_path): and I got this typeError. I saw the hints for using makedirs and I still can’t seem to get passed this error.

makedirs expects the path of the directory to create. Please see this link for examples.

1 Like

Thank you, that link worked perfectly and I was able to see a clear example on how to use the code.