module FileHelper
Direct including types
Defined in:
models/file_helper.crInstance Method Summary
-
#get_all_files : Array(String)
Get all files from CodeLocator
-
#get_files_by_extension(extension : String) : Array(String)
Get files filtered by extension
-
#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
Instance Method Detail
Get files filtered by extension
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