mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-14 11:50:27 +08:00
24 lines
548 B
C#
24 lines
548 B
C#
|
using System.Diagnostics;
|
|||
|
using System.IO;
|
|||
|
|
|||
|
namespace Wox.Infrastructure.FileSystemHelper
|
|||
|
{
|
|||
|
public class FileVersionInfoWrapper : IFileVersionInfoWrapper
|
|||
|
{
|
|||
|
public FileVersionInfoWrapper() { }
|
|||
|
public FileVersionInfo GetVersionInfo(string path)
|
|||
|
{
|
|||
|
if(File.Exists(path))
|
|||
|
{
|
|||
|
return FileVersionInfo.GetVersionInfo(path);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return null;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public string FileDescription { get; set; }
|
|||
|
}
|
|||
|
}
|