hoodwink.d enhanced

Sat Feb 2

Private Investigator Jay J. Armes

prox•e•mics
[prok-see-miks]noun
The study of the cultural, behavioral, and sociological aspects of spatial distances between individuals.
Coca-cola-truck-in-vegas

Coca Cola truck in Las Vegas

Awurade Yesu

Baptist Disciple Singers

Find all subdirectories of a given path at a particular depth

def subdirectories_of(path, options = {}) depth = options[:at_depth_of] || 1 Dir[File.join(path, * ["*"] * depth + [""])] end >> subdirectories_of("/var") => ["/var/agentx/", "/var/amavis/", "/var/at/", "/var/audit/", "/var/backups/", "/var/db/", "/var/empty/", "/var/folders/", ...] >> subdirectories_of("/var", :at_depth_of => 2) => ["/var/amavis/db/", "/var/amavis/tmp/", "/var/at/jobs/", "/var/at/spool/", "/var/at/tabs/", "/var/at/tmp/", ...]