def CreateGRRTempFileVFS(directory=None, filename=None, lifetime=0, mode='w+b', suffix=''):
 fd = CreateGRRTempFile(directory=directory, filename=filename, lifetime=lifetime, mode=mode, suffix=suffix)
 pathspec = rdf_paths.PathSpec(path=fd.name, pathtype=rdf_paths.PathSpec.PathType.TMPFILE)
 return (fd, pathspec)

def CreateGRRTempFileVFS ( directory = None , filename = None , lifetime = 0 , mode = 'w+b' , suffix = '' ) : fd = CreateGRRTempFile ( directory = directory , filename = filename , lifetime = lifetime , mode = mode , suffix = suffix ) pathspec = rdf_paths . PathSpec ( path = fd . name , pathtype = rdf_paths . PathSpec . PathType . TMPFILE ) return ( fd , pathspec )
creates a grr vfs temp file .