Skip to content

Commit

Permalink
Expand symbolic linked folders
Browse files Browse the repository at this point in the history
When expanding folders, also expand symbolic links.
Fixes senchalabs#631.
  • Loading branch information
garie committed Jan 27, 2016
1 parent e1d3dfb commit 91756b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsduck/options/input_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def expand_filename(fname)

if File.exists?(fname)
if File.directory?(fname)
Dir[fname+"/**/*.{js,scss}"].each {|f| files << f }
Dir.glob([fname+"/**{,/*/**}/*.{js,scss}"],0).each {|f| files << f }
elsif fname =~ /\.jsb3$/
Options::Jsb.read(fname).each {|fn| read_filenames(fn) }
else
Expand Down

0 comments on commit 91756b7

Please sign in to comment.