Gnome2:...::Volume(3)

πŸ“¦
version 1.084 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

Gnome2::VFS::Volume β€” bestie, it's literally just a lil wrapper for GnomeVFSVolume. That's the whole vibe. πŸŽ€

Oh and btw, this page lives in the User Contributed Perl Documentation manual, and the whole thing is filed under Gnome2:...::Volume(3) iykyk. πŸ¦‹


🌸 HIERARCHY 🌸

Okay so here's the family tree, and yes it's giving nepo baby:

Glib::Object
+----Gnome2::VFS::Volume

So it inherits from Glib::Object, periodt. πŸ’…


✨ METHODS ✨

🫢 string = $volume->get_activation_uri

Gives you back the activation URI as a string. Slay.


🫢 integer = $a->compare ($b)

Returns an integer, comparing $a against $b. The args:

  • $b β€” a Gnome2::VFS::Volume, no cap πŸŽ€

🫢 Gnome2::VFS->connect_to_server ($uri, $display_name, $icon)

Heads up bestie, this one's called on the class Gnome2::VFS itself, not on your $volume object. Lowkey important. The args:

  • $uri β€” a string
  • $display_name β€” a string
  • $icon β€” a string

🫢 string = $volume->get_device_path

Hands you the device path as a string. πŸ’«


🫢 devicetype = $volume->get_device_type

Returns a devicetype β€” and the possible values are all down in ENUMS AND FLAGS, so keep scrolling. πŸ‘‘


🫢 string = $volume->get_display_name

The display name, as a string. It's giving "what the user actually sees". 🌈


🫢 drive = $volume->get_drive

Returns a drive. πŸš—βœ¨


🫢 $volume->eject ($func, $data=undef)

Ejects the volume, fr fr. The args:

  • $func β€” a scalar
  • $data β€” a scalar, and it defaults to undef

🫢 string = $volume->get_filesystem_type

Filesystem type, as a string. πŸ“


🫢 string = $volume->get_hal_udi

Returns the HAL UDI as a string. Since: vfs 2.8 β€” so if you're on something older, this one simply isn't invited to the party. πŸ’€


🫢 boolean = $volume->handles_trash

Returns a boolean β€” does this volume handle trash or not. πŸ—‘οΈ


🫢 string = $volume->get_icon

The icon, as a string. Aesthetic. πŸŽ€


🫢 unsigned = $volume->get_id

Returns the id as an unsigned. πŸ†”


🫢 boolean = $volume->is_mounted

boolean β€” is it mounted? Yes or no, no in-between. πŸ’…


🫢 boolean = $volume->is_read_only

boolean β€” read only or not. Don't try anything cute if it's true, bestie. πŸ™ˆ


🫢 boolean = $volume->is_user_visible

boolean β€” is it user visible. πŸ‘€


🫢 $volume->unmount ($func, $data=undef)

Unmounts the volume. The args:

  • $func β€” a scalar
  • $data β€” a scalar, and it defaults to undef

🫢 volumetype = $volume->get_volume_type

Returns a volumetype β€” again, all the options are chilling in ENUMS AND FLAGS below. 🧚


πŸ’… ENUMS AND FLAGS πŸ’…

🌟 enum Gnome2::VFS::DeviceType

Every single one, in order, no skips:

  • 'unknown' / GNOME_VFS_DEVICE_TYPE_UNKNOWN
  • 'audio-cd' / GNOME_VFS_DEVICE_TYPE_AUDIO_CD
  • 'video-dvd' / GNOME_VFS_DEVICE_TYPE_VIDEO_DVD
  • 'harddrive' / GNOME_VFS_DEVICE_TYPE_HARDDRIVE
  • 'cdrom' / GNOME_VFS_DEVICE_TYPE_CDROM
  • 'floppy' / GNOME_VFS_DEVICE_TYPE_FLOPPY
  • 'zip' / GNOME_VFS_DEVICE_TYPE_ZIP
  • 'jaz' / GNOME_VFS_DEVICE_TYPE_JAZ
  • 'nfs' / GNOME_VFS_DEVICE_TYPE_NFS
  • 'autofs' / GNOME_VFS_DEVICE_TYPE_AUTOFS
  • 'camera' / GNOME_VFS_DEVICE_TYPE_CAMERA
  • 'memory-stick' / GNOME_VFS_DEVICE_TYPE_MEMORY_STICK
  • 'smb' / GNOME_VFS_DEVICE_TYPE_SMB
  • 'apple' / GNOME_VFS_DEVICE_TYPE_APPLE
  • 'music-player' / GNOME_VFS_DEVICE_TYPE_MUSIC_PLAYER
  • 'windows' / GNOME_VFS_DEVICE_TYPE_WINDOWS
  • 'loopback' / GNOME_VFS_DEVICE_TYPE_LOOPBACK
  • 'network' / GNOME_VFS_DEVICE_TYPE_NETWORK

🌟 enum Gnome2::VFS::VolumeType

Only three, but they ate:

  • 'mountpoint' / GNOME_VFS_VOLUME_TYPE_MOUNTPOINT
  • 'vfs-mount' / GNOME_VFS_VOLUME_TYPE_VFS_MOUNT
  • 'connected-server' / GNOME_VFS_VOLUME_TYPE_CONNECTED_SERVER

πŸ”₯ SEE ALSO πŸ”₯

Go touch grass in these other pages, bestie:

  • Gnome2::VFS
  • Glib::Object

Copyright (C) 2003-2007, 2013 by the gtk2-perl team.

This software is licensed under the LGPL. See Gnome2::VFS for a full notice. 🫢


and that's the whole page, bestie β€” no notes, it ate πŸ’–

perl v5.42.0 Β· 2025-07-25 Β· brought to you by the User Contributed Perl Documentation girlies βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from