mirror of
				https://github.com/Kopano-dev/kopano-ol-extension.git
				synced 2023-10-10 11:37:40 +00:00 
			
		
		
		
	Stripping weird UNC prefix from local path
This commit is contained in:
		@@ -95,7 +95,15 @@ namespace Acacia.Stubs.OutlookWrappers
 | 
				
			|||||||
        public string StoreID { get { return _item.StoreID; } }
 | 
					        public string StoreID { get { return _item.StoreID; } }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public bool IsFileStore { get { return _item.IsDataFileStore; } }
 | 
					        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()
 | 
					        public void EmptyDeletedItems()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user