src/BloomExe/web/controllers/CommonApi.cs
/// <summary>
/// Open the folder containing the specified file and select it.
/// </summary>
/// <param name="filePath"></param>
Open the folder containing the specified file and select it.
Open the folder containing the specified file and select it .
private static void SelectFileInExplorer(string filePath)
		{
			try
			{
				PathUtilities.SelectFileInExplorer(filePath.Replace("/", Path.DirectorySeparatorChar.ToString()));
			}
			catch (System.Runtime.InteropServices.COMException e)
			{
				SIL.Reporting.ErrorReport.NotifyUserOfProblem(e,
					$"Bloom had a problem asking your operating system to show {filePath}. Sorry!");
			}
			var folderName = Path.GetFileName(Path.GetDirectoryName(filePath));
			BringFolderToFrontInLinux(folderName);
		}
private static void SelectFileInExplorer ( string filePath ) { try { PathUtilities . SelectFileInExplorer ( filePath . Replace ( " " , Path . DirectorySeparatorChar . ToString ( ) ) ) ; } catch ( System . Runtime . InteropServices . COMException e ) { SIL . Reporting . ErrorReport . NotifyUserOfProblem ( e , $" Bloom had a problem asking your operating system to show  { filePath } . Sorry! " ) ; } var folderName = Path . GetFileName ( Path . GetDirectoryName ( filePath ) ) ; BringFolderToFrontInLinux ( folderName ) ; }
Open the folder containing the specified file and select it.
Open the folder containing the specified file and select it .
filePath
string
None