mirror of
https://github.com/zhigang1992/synx.git
synced 2026-01-12 22:52:53 +08:00
Minor path cleanup
This commit is contained in:
@@ -36,15 +36,10 @@ module Xcodeproj
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user