Module: JamfRubyExtensions::FileTest::Predicates
- Included in:
- FileTest
- Defined in:
- lib/jamf/ruby_extensions/filetest/predicates.rb
Instance Method Summary collapse
-
#j_real_file?(path) ⇒ Boolean
FileTest.file? returns true if the item is a symlink pointing to a regular file.
Instance Method Details
#j_real_file?(path) ⇒ Boolean
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.
38 39 40 |
# File 'lib/jamf/ruby_extensions/filetest/predicates.rb', line 38 def j_real_file?(path) FileTest.file?(path) && !FileTest.symlink?(path) end |