module FileHelper

Direct including types

Defined in:

models/file_helper.cr

Instance Method Summary

Instance Method Detail

def get_all_files : Array(String) #

Get all files from CodeLocator


[View source]
def get_files_by_extension(extension : String) : Array(String) #

Get files filtered by extension


[View source]
def get_files_by_prefix(prefix : String) : Array(String) #

Get files filtered by path prefix


[View source]
def get_files_by_prefix_and_extension(prefix : String, extension : String) : Array(String) #

Get files filtered by both prefix and extension


[View source]
def get_public_dir_files(base_path : String, folder : String) : Array(String) #

Helper to get public directories content from anywhere in the project


[View source]
def 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)


[View source]
def populate_channel_with_files(channel : Channel(String)) #

Helper to populate a channel from file list instead of using Dir.glob


[View source]