    # File lib/chef/provider/remote_directory.rb, line 57
          def purge_unmanaged_files(unmanaged_files)
            if @new_resource.purge
              unmanaged_files.sort.reverse.each do |f|
                if ::File.directory?(f)
                  Dir::rmdir(f)
                  Chef::Log.debug("#{@new_resource} removed directory #{f}")
                else
                  ::File.delete(f)
                  Chef::Log.debug("#{@new_resource} deleted file #{f}")
                end
              end
            end
          end