Stripping weird UNC prefix from local path

This commit is contained in:
Patrick Simpson 2017-03-22 11:07:53 +01:00
parent df356741d5
commit e08b730fc4
1 changed files with 9 additions and 1 deletions

View File

@ -95,7 +95,15 @@ namespace Acacia.Stubs.OutlookWrappers
public string StoreID { get { return _item.StoreID; } }
public bool IsFileStore { get { return _item.IsDataFileStore; } }
public string FilePath { get { return _item.FilePath; } }
public string FilePath
{
get
{
// Sometimes local paths include a ? UNC prefix which complicates checking for local
// folders. Strip that.
return _item.FilePath?.StripPrefix(@"\\?\");
}
}
public void EmptyDeletedItems()
{