Bracket.Hosting.ZipArchiveDirectory.FileExists C# (CSharp) Method

FileExists() public method

public FileExists ( string path ) : bool
path string
return bool
        public bool FileExists(string path)
        {
            ZipEntry entry = GetEntry(path);
            return entry != null && entry.IsDirectory == false;
        }

Usage Example

 public void FileExistsShouldFindRootedFilePath()
 {
     //Given
     var dir = new ZipArchiveDirectory("Fresh.zip");
     //when
     bool wasFound = dir.FileExists(FullPath("fresh/readMe.txt"));
     //then
     Assert.IsTrue(wasFound);
 }
All Usage Examples Of Bracket.Hosting.ZipArchiveDirectory::FileExists