BloomTemp.TemporaryFolder.GetNewTempFile C# (CSharp) Method

GetNewTempFile() public method

public GetNewTempFile ( bool doCreateTheFile ) : TempFile
doCreateTheFile bool
return TempFile
        public TempFile GetNewTempFile(bool doCreateTheFile)
        {
            string s = System.IO.Path.GetRandomFileName();
            s = System.IO.Path.Combine(_path, s);
            if (doCreateTheFile)
            {
                RobustFile.Create(s).Close();
            }
            return TempFile.TrackExisting(s);
        }