isdir() -> is_dir()

Signed-off-by: René Jochum <rene@jochum.dev>
master
René Jochum 4 years ago
parent 440f31367e
commit 48b1310f15

@ -30,7 +30,7 @@ for postfix_file in glob.glob("/conf/*.cf", recursive=True):
p = pathlib.Path(postfix_file)
p = p.relative_to(*p.parts[:2])
p = p.joinpath('/etc/postfix', *p.parts)
if not p.parent.isdir():
if not p.parent.is_dir():
p.parent.mkdir(0o700)
destination = str(p)
@ -41,7 +41,7 @@ for postfix_file in glob.glob("/conf/*.cf.jinja", recursive=True):
p = pathlib.Path(postfix_file)
p = p.relative_to(*p.parts[:2])
p = p.joinpath('/etc/postfix', *p.parts)
if not p.parent.isdir():
if not p.parent.is_dir():
p.parent.mkdir(0o700)
destination = str(p)

Loading…
Cancel
Save