public GetNewTempFile ( bool doCreateTheFile ) : TempFile | ||
doCreateTheFile | bool | |
리턴 | 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);
}