[Xorp-hackers] Problems with Mkdir
Ben Greear
greearb at candelatech.com
Thu Dec 3 22:39:08 PST 2009
Mkdir fails if directory already exists, which breaks (re)build on Linux, at least.
Using this:
# Mkdir fails if dir already exists..use this instead.
def mkdir_path(path):
if not os.access(path, os.F_OK):
os.mkdirs(path)
and then calling mkdir_path instead of Execute(Mkdir
fixes the problem for me.
Thanks,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Xorp-hackers
mailing list