---
name: "zzip_dir_real"
section: "3"
platform: "linux"
package: "libzzip-dev"
version: "0.13.78+dfsg.1-0.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/zzip_file_real"
---

# zzip\_dir\_real(3)

check real or zipped file.

Part of [zzip\_file\_real(3)](/zzip_file_real/3.md).

## NAME

zzip\_file\_real, zzip\_dir\_real, zzip\_realdir, zzip\_realfd -  check real or zipped file.

## SYNOPSIS

```
#include <zzip/lib.h>

int
zzip_file_real(ZZIP_FILE* fp)
int
zzip_dir_real(ZZIP_DIR* dir)
void*
zzip_realdir(ZZIP_DIR* dir)
int
zzip_realfd(ZZIP_FILE* fp)
```

## DESCRIPTION

 The *zzip\_file\_real* function checks if the ZZIP\_FILE-handle is wrapping a real file or a zip-contained file. Returns 1 for a stat'able file, and 0 for a file inside a zip-archive.

 The *zzip\_dir\_real* function checks if the ZZIP\_DIR-handle is wrapping a real directory or a zip-archive. Returns 1 for a stat'able directory, and 0 for a handle to zip-archive.

 The *zzip\_realdir* function returns the posix DIR\* handle (if one exists). Check before with *zzip\_dir\_real* if the the ZZIP\_DIR points to a real directory.

 The *zzip\_realfd* function returns the posix file descriptor (if one exists). Check before with *zzip\_file\_real* if the the ZZIP\_FILE points to a real file.

## AUTHOR

 Guido Draheim \<guidod@gmx.de\>

## COPYRIGHT

 Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
