module JamfRubyExtensions::FileTest::Predicates

Public Instance Methods

j_real_file?(path) click to toggle source

FileTest.file? returns true if the item is a symlink pointing to a regular file.

This test, real_file?, returns true if the item is a regular file but NOT a symlink.

   # File lib/jamf/ruby_extensions/filetest/predicates.rb
38 def j_real_file?(path)
39   FileTest.file?(path) && !FileTest.symlink?(path)
40 end
Also aliased as: jss_real_file?
jss_real_file?(path)
Alias for: j_real_file?