module Crystallabs::Helpers::Files

Overview

Filesystem helpers.

Defined in:

crystallabs-helpers.cr

Class Method Summary

Class Method Detail

def self.find_file(start : String, target : String) : String | Nil #

Finds a file with name target inside toplevel directory start, depth-first, skipping the virtual/system trees. Returns the full path or nil. Unreadable directories and vanished entries are skipped, and a symlinked directory is not descended into (no cycle risk).


[View source]