public bool IsAbsolutePath(string path) { path = VirtualFileUtils.NormalizePath(path); return path.StartsWith(_storagePath, StringComparison.CurrentCultureIgnoreCase); }
public void IsAbsolutePathShouldNotMatchOtherZipArchives() { //given var dir = new ZipArchiveDirectory("Fresh.zip"); //when bool isAbsolute = dir.IsAbsolutePath("Fresher.zip/tada"); //then Assert.IsFalse(isAbsolute); }