'Create a local file and return its path.
When `path` is L{None}, it will create a new temporary file.
@param path: Optional path for the new file.
@type path: L{str}
@param content: Content to be written in the new file.
@type content: L{bytes}
@return: Path to the newly create file.'

def makeFile(self, path=None, content=''):

    if (path is None):
        path = self.mktemp()
    with open(path, 'wb') as file:
        file.write(content)
    return path
