Module: FileTest

Defined in:
lib/jss/ruby_extensions/filetest.rb

Class Method Summary collapse

Class Method Details

.jss_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.


35
36
37
# File 'lib/jss/ruby_extensions/filetest.rb', line 35

def FileTest.jss_real_file?(path)
  FileTest.file?(path) and not FileTest.symlink?(path)
end