# File lib/base_command.rb, line 56 def is_file?(path) full_path = File.expand_path(path) if File.exist?(full_path) && !File.directory?(full_path) return true end false end