1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

Stripping weird UNC prefix from local path

This commit is contained in:
Patrick Simpson 2017-03-22 11:07:53 +01:00
parent fc6e517373
commit 11102c90cc

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()
{