Module: Filepath::FilesystemTests

Included in:
Filepath
Defined in:
lib/filepath/filepath.rb

Instance Method Summary collapse

Instance Method Details

#mountpoint?Boolean

Returns:

  • (Boolean)


856
857
858
859
860
861
862
863
864
865
866
# File 'lib/filepath/filepath.rb', line 856

def mountpoint?
	if !directory? || !exists?
		return false
	end

	if root?
		return true
	end

	return self.lstat.dev != parent_dir.lstat.dev
end