/// <summary> Static factory function. </summary> /// <param name="dir_name">Name of the directory - subdirectory of temporary directory. /// If this parameter is null, files will be created on root of user's temp directory.</param> /// <param name="clear_dir">This flag indicates that directory should be /// cleared - all its files removed </param> /// <returns>Initialized temp dir manager object </returns> public static TempDirManager Create(string dir_name, bool clear_dir) { if (dir_name == null) dir_name = ""; TempDirManager res = new TempDirManager(dir_name, clear_dir); res.PrepareTmpDir(); return res; }
/// <summary> Static factory function. </summary> /// <param name="dir_name">Name of the directory - subdirectory of temporary directory. /// If this parameter is null, files will be created on root of user's temp directory.</param> /// <param name="clear_dir">This flag indicates that directory should be /// cleared - all its files removed </param> /// <returns>Initialized temp dir manager object </returns> public static TempDirManager Create(string dir_name, bool clear_dir) { if (dir_name == null) { dir_name = ""; } TempDirManager res = new TempDirManager(dir_name, clear_dir); res.PrepareTmpDir(); return(res); }