module Sprockets::PathDependencyUtils
def entries_with_dependencies(path)
path - String directory path
See PathUtils#entries
would invalid the cached return result.
Internal: List directory entries and return a set of dependencies that
def entries_with_dependencies(path) return entries(path), Set.new([build_file_digest_uri(path)]) end
def stat_directory_with_dependencies(dir)
dir - A String directory
See PathUtils#stat_directory
directory.
Internal: List directory filenames and associated Stats under a
def stat_directory_with_dependencies(dir) return stat_directory(dir).to_a, Set.new([build_file_digest_uri(dir)]) end
def stat_sorted_tree_with_dependencies(dir)
dir - A String directory
See PathUtils#stat_sorted_tree
directory tree.
Internal: List directory filenames and associated Stats under an entire
def stat_sorted_tree_with_dependencies(dir) deps = Set.new([build_file_digest_uri(dir)]) results = stat_sorted_tree(dir).map do |path, stat| deps << build_file_digest_uri(path) if stat.directory? [path, stat] end return results, deps end