Skip to content

Instantly share code, notes, and snippets.

@morganp
Created August 18, 2010 20:03
Show Gist options
  • Save morganp/535985 to your computer and use it in GitHub Desktop.
Save morganp/535985 to your computer and use it in GitHub Desktop.
def contents(path)
n_path = File.expand_path( path )
Dir.chdir(n_path)
files = Dir.glob('*')
return files
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment