PhyslibSearch

Physlib.Meta.AllFilePaths

3 declarations

definition

Recursive Collection of File Paths

#go

Let prev\text{prev} be an array of file paths, root\text{root} be a string representing a root directory, and path\text{path} be a specific file path. The function `allFilePaths.go` is a recursive utility that traverses the file system starting from path\text{path} relative to root\text{root}, appending all discovered file paths to prev\text{prev}, and returns the resulting array as an IO\text{IO} operation.

definition

Array of all file paths in `Physlib`

#allFilePaths

The function `allFilePaths` is an IO\text{IO} operation that returns an array containing the `FilePath` of every file found within the `./Physlib` directory.

definition

Array of all module names in `Physlib`

#allPhyslibModules

The function `allPhyslibModules` is an IO\text{IO} operation that returns an array of `Lean.Name` values representing the module names of all files within the `Physlib` directory. It processes the list of file paths by removing the `.lean` extension and converting the directory path separators into a dot-separated format, starting with the prefix `Physlib.`.