

def CreateFile(self, filepath):
    path = self.out.Add(filepath)
    fd = aff4.FACTORY.Create(path, 'VFSMemoryFile', token=self.token)
    fd.Write('some data')
    fd.Close()

dataset/ETHPy150Open google/grr/grr/lib/export_utils_test.py TestExports.CreateFile/original