Merge pull request #11 from danielbayerlein/ftp-hidden-files
[deploy_ftp] Add support for hidden files.
This commit is contained in:
commit
4f41240306
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,8 @@ EOF
|
||||||
ftp.passive = true
|
ftp.passive = true
|
||||||
|
|
||||||
Dir.chdir('build/') do
|
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)
|
if File.directory?(f)
|
||||||
begin
|
begin
|
||||||
ftp.mkdir(f)
|
ftp.mkdir(f)
|
||||||
|
|
Loading…
Reference in a new issue