public void WriteToDisk() { this.profileDir = FirefoxProfile.GenerateProfileDirectoryName(); if (!string.IsNullOrEmpty(this.sourceProfileDir)) { FileUtilities.CopyDirectory(this.sourceProfileDir, this.profileDir); } else { Directory.CreateDirectory(this.profileDir); } this.InstallExtensions(); this.DeleteLockFiles(); this.DeleteExtensionsCache(); this.UpdateUserPreferences(); }
/// <summary> /// Initializes a new instance of the <see cref="FirefoxProfile"/> class. /// </summary> public FirefoxProfile() : this(Directory.CreateDirectory(FirefoxProfile.GenerateProfileDirectoryName()).FullName) { }