162
162
uid = pwd.getpwnam(owner).pw_uid
163
163
gid = grp.getgrnam(group).gr_gid
164
164
realpath = os.path.abspath(path)
167
168
log("Removing non-directory file {} prior to mkdir()".format(path))
170
173
os.makedirs(realpath, perms)
174
177
def write_file(path, content, owner='root', group='root', perms=0o444):