module FileHelper
Direct including types
Defined in:
models/file_helper.crInstance Method Summary
-
#all_files : Array(String)
Get all files from CodeLocator
-
#get_files_by_extension(extension : String) : Array(String)
Get files filtered by extension (uses cached index for O(1) lookup)
-
#get_files_by_prefix(prefix : String) : Array(String)
Get files filtered by path prefix
-
#get_files_by_prefix_and_extension(prefix : String, extension : String) : Array(String)
Get files filtered by both prefix and extension
-
#get_public_dir_files(base_path : String, folder : String) : Array(String)
Helper to get public directories content from anywhere in the project
-
#get_public_files(base_path : String) : Array(String)
Get public files (files that should be served as static content) This method searches for any "public" directory within the base_path (at any depth level)
-
#populate_channel_with_files(channel : Channel(String))
Helper to populate a channel from file list instead of using Dir.glob
-
#populate_channel_with_filtered_files(channel : Channel(String), extension : String)
Helper to populate a channel with only files matching the given extension
-
#populate_channel_with_filtered_files(channel : Channel(String), extensions : Array(String))
Helper to populate a channel with files matching any of the given extensions
Instance Method Detail
Get files filtered by extension (uses cached index for O(1) lookup)
Get files filtered by path prefix
Get files filtered by both prefix and extension
Helper to get public directories content from anywhere in the project
Get public files (files that should be served as static content) This method searches for any "public" directory within the base_path (at any depth level)
Helper to populate a channel from file list instead of using Dir.glob
Helper to populate a channel with only files matching the given extension
Helper to populate a channel with files matching any of the given extensions