lib/cocoapods/installer/pod_source_installer.rb
def clean_paths
        cached_used = used_files
        glob_options = File::FNM_DOTMATCH | File::FNM_CASEFOLD
        files = Pathname.glob(root + "**/*", glob_options).map(&:to_s)

        files.reject! do |candidate|
          candidate.end_with?('.', '..') || cached_used.any? do |path|
            path.include?(candidate) || candidate.include?(path)
          end
        end
        files
      end
# Finds the absolute paths, including hidden ones, of the files
# that are not used by the pod and thus can be safely deleted.
#
# @note   Implementation detail: Don't use `Dir#glob` as there is an
#         unexplained issue (#568, #572 and #602).
#
# @return [Array<Strings>] The paths that can be deleted.
#
Finds the absolute paths, including hidden ones, of the files
that are not used by the pod and thus can be safely deleted.
Finds the absolute paths including hidden ones of the files that are not used by the pod and thus can be safely deleted .
def clean_paths
        cached_used = used_files
        glob_options = File::FNM_DOTMATCH | File::FNM_CASEFOLD
        files = Pathname.glob(root + "**/*", glob_options).map(&:to_s)
        files.reject! do |candidate|
          candidate.end_with?('.', '..') || cached_used.any? do |path|
            path.include?(candidate) || candidate.include?(path)
          end
        end
        files
      end
def clean_paths cached_used = used_files glob_options = File :: FNM_DOTMATCH | File :: FNM_CASEFOLD files = Pathname . glob ( root + "**/*" , glob_options ) . map ( & :to_s ) files . reject! do | candidate | candidate . end_with? ( '.' , '..' ) || cached_used . any? do | path | path . include? ( candidate ) || candidate . include? ( path ) end end files end
Finds the absolute paths, including hidden ones, of the files
that are not used by the pod and thus can be safely deleted.
Finds the absolute paths including hidden ones of the files that are not used by the pod and thus can be safely deleted .
The paths that can be deleted.
The paths that can be deleted .
Array<Strings>
note
Implementation detail: Don't use `Dir#glob` as there is an unexplained issue (#568, #572 and #602).
Implementation detail : Don ' t use ` Dir#glob ` as there is an unexplained issue ( #568 #572 and #602 ) .