Class Puppet::FileServing::Fileset
In: lib/puppet/file_serving/fileset.rb
Parent: Object

Operate recursively on a path, returning a set of file paths.

Methods

Attributes

ignore  [R] 
links  [R] 
path  [R] 
recurse  [RW] 
recurselimit  [RW] 

Public Class methods

Produce a hash of files, with merged so that earlier files with the same postfix win. E.g., /dir1/subfile beats /dir2/subfile. It‘s a hash because we need to know the relative path of each file, and the base directory.

  This will probably only ever be used for searching for plugins.

Public Instance methods

Return a list of all files in our fileset. This is different from the normal definition of find in that we support specific levels of recursion, which means we need to know when we‘re going another level deep, which Find doesn‘t do.

Should we ignore this path?

Should we recurse further? This is basically a single place for all of the logic around recursion.

Stat a given file, using the links-appropriate method.

[Validate]