Merge pull request #11 from danielbayerlein/ftp-hidden-files

[deploy_ftp] Add support for hidden files.
This commit is contained in:
Tom Vaughan 2013-01-13 18:35:50 -08:00
commit 4f41240306

View file

@ -177,7 +177,8 @@ EOF
ftp.passive = true
Dir.chdir('build/') do
Dir['**/*'].each do |f|
files = Dir.glob('**/*', File::FNM_DOTMATCH)
files.reject { |a| a =~ Regexp.new('\.$') }.each do |f|
if File.directory?(f)
begin
ftp.mkdir(f)