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_sint64 filesize
  • PHYSFS_sint64 modtime
  • PHYSFS_sint64 createtime
  • PHYSFS_sint64 accesstime
  • PHYSFS_FileType filetype
  • int readonly

πŸ‘‘ 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_stat
  • PHYSFS_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