rob-murray / ferver

A Ruby gem to serve files over HTTP, packaged as a Ruby gem
MIT License
14 stars 3 forks source link

Ignore dot files? #15

Open dkam opened 9 years ago

dkam commented 9 years ago

Hi there, It'd be nice if it would ignore files beginning with a dot. If you're interested, I can branch and submit a pull request, or you could just add :

next if file_name =~ /^./

to lib/ferver/file_list.rb, line 45.

Cheers, Dan

rob-murray commented 9 years ago

Sure sounds like a good idea, normally you probably wouldnt want to serve those files so that makes sense.

Maybe a configuration option that has a default not to serve those files but can be enabled if configured?