def make_file(path, content='', permissions=None):
    path.setContent(content)
    if permissions is not None:
        path.chmod(permissions)
    return path
Create a file with given content and permissions.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/_filepath.py/make_file