module Sprockets::PathDigestUtils

def file_digest(path)

Returns String digest bytes or nil.

path - String filename or directory path.

Internal: Compute digest for path.
def file_digest(path)
  if stat = self.stat(path)
    self.stat_digest(path, stat)
  end
end