End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#mountpoint?
mountpoint?
ext/pathname/lib/pathname.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/pathname/lib/pathname.rb, line 199
def mountpoint?
begin
stat1 = self.lstat
stat2 = self.parent.lstat
stat1.dev != stat2.dev || stat1.ino == stat2.ino
rescue Errno::ENOENT
false
end
end
Returns true if self points to a mountpoint.