private void OpenTextsFolder() { if (CurrentBook.CollectionSettings.SettingsFilePath == null) { return; } var path = Path.Combine(Path.GetDirectoryName(CurrentBook.CollectionSettings.SettingsFilePath), "Sample Texts"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } PathUtilities.OpenDirectoryInExplorer(path); CommonApi.BringFolderToFrontInLinux("Sample Texts"); }