module Creestal::Utils::FS

Defined in:

utils/fs.cr

Class Method Summary

Class Method Detail

def self.asset_output_path(relative_path : String) : String #

[View source]
def self.cleanup_dir(path : String) : Nil #

[View source]
def self.copy_dir(source_path : String, destination_path : String) : Nil #

[View source]
def self.copy_file(source_path : String, destination_path : String) : Nil #

[View source]
def self.ensure_dir(path : String) : Nil #

[View source]
def self.find_files_in_dir_by_extension(directory : String, extension : String) : Array(String) #

[View source]
def self.normalize_web_path(path : String) : String #

[View source]
def self.page_output_path(relative_path : String, extension : String = "html") : String #

[View source]
def self.read_file(path : String) : String #

[View source]
def self.strip_extension(path : String) : String #

[View source]
def self.write_file(path : String, content : String) : Nil #

[View source]