Module: Utils::Finder::Files

Includes:
Tins::Find, XDG
Included in:
Utils::Finder
Defined in:
lib/utils/finder/files.rb

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

Instance Method Details

#current_pathsArray<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.

Returns:

  • (Array<String>)

    an array of file path strings that were previously indexed and cached



19
20
21
# File 'lib/utils/finder/files.rb', line 19

def current_paths
  load_paths
end