Gnome2:...FileInfo(3)
π Gnome2::VFS::FileInfo π
okay bestie, welcome to the manual page for Gnome2::VFS::FileInfo β it's part of the User Contributed Perl Documentation collection, section 3 (that's the library-functions section, iykyk β¨). pull up a chair, grab a boba, and let's get into it. π§
β¨ NAME β¨
Gnome2::VFS::FileInfo β that's the whole name, that's the whole vibe. π
π METHODS π
πΈ fileinfo = Gnome2::VFS::FileInfo->new ($hash_ref)
$hash_ref(scalar)
not me manifesting a whole new object out of a hash ref πβ¨. this one creates a new GnomeVFSFileInfo object from hash_ref β like, for use with Gnome2::VFS::FileInfo::matches, for example. iconic.
and here's the tea π«: normally, you can always directly use a hash reference if you're asked for a GnomeVFSFileInfo. so like, no stress, bestie β the raw hash ref is valid currency in these streets. πΈ
π¦ boolean = $a->matches ($b)
$b(Gnome2::VFS::FileInfo)
does $a match $b? π returns a boolean, so it's giving true-or-false, no in-between, no "it's complicated". the vibe check, but for file info objects. β
π string = $info->get_mime_type
grab the mime type as a string π. that's it, that's the method. lowkey the simplest glow-up on the page and honestly? obsessed. π
π SEE ALSO π
Gnome2::VFS β go read that one next, fr fr. it's the main character of this whole cinematic universe. π
π COPYRIGHT π
Copyright (C) 2003-2007, 2013 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2::VFS for a full notice. π
shoutout to the gtk2-perl team for holding it down since 2003, we love a legacy queen π π
perl v5.42.0 Β· 2025-07-25 β that's the version and the date, bestie, and that's a wrap on Gnome2::VFS::FileInfo. go forth and slay your file info. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Gnome2-VFS 1.084-17.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms