Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: b1d2d44af0
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (15 sloc) 0.41 kB
#!/usr/bin/ruby
unless File.directory?(ARGV[0])
puts "Not a valid directory...\nCheck path and try again.\n\n"
exit
end
#Open a directory
Dir.open(ARGV[0]) do |adir|
#Check each file for symlink-ness and validity
adir.each do |afile|
next unless FileTest.symlink?(afile)
next if File.file?(afile)
#Report to user
puts "Bad Link: #{File.expand_path(afile)}"
end
end
Jump to Line
Something went wrong with that request. Please try again.