lib/plugins/pluginmanager.rb in rsence-pre-2.1.0.7.pre vs lib/plugins/pluginmanager.rb in rsence-pre-2.1.0.8.pre
- old
+ new
@@ -251,12 +251,13 @@
if path_date > newest_date and not is_dir
newest_date = path_date
end
if is_dir
Dir.entries( bundle_path ).each do |entry_name|
- next if entry_name[0].chr == '.'
+ next if entry_name[0].chr == '.' # skip hidden, '.' and '..'
full_path = File.join( bundle_path, entry_name )
unless File.directory?( full_path )
+ next if entry_name == 'plugins' # skip sub-plugins
has_dot = entry_name.include?('.')
next unless has_dot
is_src_file = ['yaml','rb'].include?( entry_name.split('.')[-1] )
next unless is_src_file
end