bool IsBasePath(OpenFileSystem.IO.Path path, OpenFileSystem.IO.Path absolutePath) { var basePathSegments = path.Segments.ToList(); var absolutePathSegments = absolutePath.Segments.ToList(); if (absolutePathSegments.Count <= basePathSegments.Count) return false; for (int i = 0; i < path.Segments.Count(); i++) { if (basePathSegments[i] != absolutePathSegments[i]) return false; } return true; }
KeyValuePair<string, string> GetKey(string exportPath, OpenFileSystem.IO.Path absolutePath) { return Key(exportPath, absolutePath); }