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

PHYSFS_Stat

Metadata for a file or directory

Header File

Defined in <physfs.h>

Syntax

typedef struct PHYSFS_Stat
{
    PHYSFS_sint64 filesize; /**< size in bytes, -1 for non-files and unknown */
    PHYSFS_sint64 modtime;  /**< last modification time */
    PHYSFS_sint64 createtime; /**< like modtime, but for file creation time */
    PHYSFS_sint64 accesstime; /**< like modtime, but for file access time */
    PHYSFS_FileType filetype; /**< File? Directory? Symlink? */
    int readonly; /**< non-zero if read only, zero if writable. */
} PHYSFS_Stat;

Remarks

Container for various meta data about a file in the virtual file system. PHYSFS_stat() uses this structure for returning the information. The time data will be either the number of seconds since the Unix epoch (midnight, Jan 1, 1970), or -1 if the information isn't available or applicable. The filesize field is measured in bytes. The readonly field tells you whether the archive thinks a file is not writable, but tends to be only an estimate (for example, your write dir might overlap with a .zip file, meaning you can successfully open that path for writing, as it gets created elsewhere.

Version

This struct is available since PhysicsFS 2.1.0.

See Also


CategoryAPI, CategoryAPIStruct, 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.