Module: Polyfill::V2_4::Dir::ClassMethods

Defined in:
lib/polyfill/v2_4/dir.rb

Instance Method Summary collapse

Instance Method Details

#empty?(path_name) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/polyfill/v2_4/dir.rb', line 5

def empty?(path_name)
  exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
end