PHYSFS_Stat(3)
β¨ PHYSFS_Stat(3) β¨
okay bestie, so this is a page from the Library Functions Manual π and it's all about PHYSFS_Stat β the little glow-up struct that holds meta data for a file or directory. yes, the whole page. buckle up. π
πΈ NAME πΈ
PHYSFS_Stat β Meta data for a file or directory. that's it. that's the vibe. β¨
π¦ SYNOPSIS π¦
#include <physfs.h>
π Data Fields
PHYSFS_sint64filesizePHYSFS_sint64modtimePHYSFS_sint64createtimePHYSFS_sint64accesstimePHYSFS_FileTypefiletypeintreadonly
π Detailed Description π
Meta data for a file or directory. periodt. π
so like, it's a container for various meta data about a file in the virtual file system. and the way that PHYSFS_stat() uses this structure for returning the information?? iconic. genuinely. π«Ά
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. no cap. if it's -1 it's justβ¦ not giving. π
the (filesize) field is measured in bytes obviously. β¨
and the (readonly) field tells you whether the archive thinks a file is not writable, but it tends to be only an estimate. like, 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. so it's giving "trust me bro" energy a lil bit. π
π See also
PHYSFS_statPHYSFS_FileType
π Field Documentation π
π PHYSFS_sint64 PHYSFS_Stat::accesstime
like modtime, but for file access time. same energy, different timestamp bestie. π
π PHYSFS_sint64 PHYSFS_Stat::createtime
like modtime, but for file creation time. the origin story moment fr fr. πΈ
π PHYSFS_sint64 PHYSFS_Stat::filesize
size in bytes, -1 for non-files and unknown. if you get a -1 she's not telling you her size, respect it. π
π PHYSFS_FileType PHYSFS_Stat::filetype
File? Directory? Symlink? the vibe check of the whole struct honestly. π₯
π PHYSFS_sint64 PHYSFS_Stat::modtime
last modification time. when she last changed her look. β¨
π int PHYSFS_Stat::readonly
non-zero if read only, zero if writable. simple as that. π
π Author π
Generated automatically by Doxygen for physfs from the source code. (not a human, just a very diligent robot doing her best. π€π)
okay that's the whole page bestie, go forth and stat responsibly π¦πβ¨ β this was physfs, Version 3.2.0, and yes, the page is PHYSFS_Stat(3). mwah. π
π
π¦ where this page comes from
- arch rolling: physfs 3.2.0-5 Β· Zlib
- fedora 44: physfs-devel 3.2.0-3.fc44 Β· Zlib
- fedora 44: physfs-devel 3.2.0-3.fc44 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms