Skip to content

Commit

Permalink
Minor path cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Laren committed Jan 1, 2015
1 parent 56769a7 commit e9dfa3c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/synx/xcodeproj_ext/project/object/pbx_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,10 @@ def excluded_from_sync?
def move_entries_not_in_xcodeproj
if excluded_from_sync?
Synx::Tabber.puts "#{basename}/ (excluded)".yellow
else
elsif real_path.exist?
Synx::Tabber.puts "#{basename}/".green
Synx::Tabber.increase
Dir[real_path.to_s + "/{*,.*}"]
.reject { |e| %W(. ..).include?(Pathname(e).basename.to_s) }
.each do |entry|
# Is this right? entry should be an absolute path here, so it should
# overwrite real_path entirely in this sum, which seems counterintuitive.
entry_pathname = real_path + entry
real_path.children.each do |entry_pathname|
unless project.has_object_for_pathname?(entry_pathname)
handle_unused_entry(entry_pathname)
end
Expand Down

0 comments on commit e9dfa3c

Please sign in to comment.