wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

PHYSFS_isDirectory

Determine if a file in the search path is really a directory.

Deprecated

As of PhysicsFS 2.1, use PHYSFS_stat() instead. This function just wraps it anyhow.

Header File

Defined in <physfs.h>

Syntax

int PHYSFS_isDirectory(const char *fname);

Function Parameters

const char * fname filename in platform-independent notation.

Return Value

(int) Returns non-zero if filename exists and is a directory. zero otherwise.

Remarks

Determine if the first occurence of fname in the search path is really a directory entry.

Note that entries that are symlinks are ignored if PHYSFS_permitSymbolicLinks(1) hasn't been called, so you might end up further down in the search path than expected.

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since PhysicsFS 1.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryPhysicsFS


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.