Module: Utils::Finder::Files
Overview
A module that provides file system traversal and path management functionality for the Utils library.
This module includes methods for discovering root directories, generating unique index paths, creating and loading file path caches, and resetting indexes based on configuration settings.
Constant Summary
Constants included from XDG
XDG::XDG_CACHE_HOME, XDG::XDG_CONFIG_HOME, XDG::XDG_DATA_HOME, XDG::XDG_STATE_HOME
Instance Method Summary collapse
-
#current_paths ⇒ Array<String>
The current_paths method retrieves the cached file paths from the index.
Instance Method Details
#current_paths ⇒ Array<String>
The current_paths method retrieves the cached file paths from the index.
This method loads and returns the file paths that have been previously indexed and stored in the cache, providing quick access to the collection of paths without reprocessing the file system.
19 20 21 |
# File 'lib/utils/finder/files.rb', line 19 def current_paths load_paths end |