Skip to content

Instantly share code, notes, and snippets.

@radityopw
Created September 13, 2010 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radityopw/576754 to your computer and use it in GitHub Desktop.
Save radityopw/576754 to your computer and use it in GitHub Desktop.
require "find"
require "fileutils"
targets = ARGV
for target in targets
Find.find(target) do |path|
if FileTest.directory?(path)
next
else
print path,"\n"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment