@denis-sokolov But the current code is opitionated: if you don't turn errors into exceptions, the code will continue its execution with the missing directory, while it expects the directory to exist.