Module: RakeScript::FileSystem

Included in:
RakeMethods
Defined in:
lib/rake_script/file_system.rb

Instance Method Summary collapse

Instance Method Details

#folder_exist?(path) ⇒ TruClass, FalseClass

Check if folder exists.

Parameters:

  • path (String)

    folder path.

Returns:

  • (TruClass, FalseClass)

    boolean



8
9
10
# File 'lib/rake_script/file_system.rb', line 8

def folder_exist?(path)
  File.directory?(path)
end