Python · Files & Paths (pathlib)
os.mkdir("a/b/c") fails when a and b don't exist. What error, and which function fixes it — and what do both do if the target already exists?
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
