lib/xcres/analyzer/resources_analyzer/base_resources_analyzer.rb
# Get a list of all files in a directory
#
# @param  [Pathname] dir
#         the directory
#
# @return [Array<Pathname>]
#         the file paths relative to the given dir
#
Get a list of all files in a directory
Get a list of all files in a directory
def find_files_in_dir dir
        unless dir.exist?
          warn "Can't find files in dir %s as it doesn't exist!",
            dir.relative_path_from(project.path + '..').to_s
          return []
        end
        Dir.chdir dir do
          Dir['**/*'].map { |path| Pathname(path) }
        end
      end
def find_files_in_dir dir unless dir . exist? warn "Can't find files in dir %s as it doesn't exist!" , dir . relative_path_from ( project . path + '..' ) . to_s return [ ] end Dir . chdir dir do Dir [ '**/*' ] . map { | path | Pathname ( path ) } end end
Get a list of all files in a directory
Get a list of all files in a directory
the file paths relative to the given dir
the file paths relative to the given dir
Array<Pathname>
dir
dir the directory
dir the directory