struct Teeplate::FileData

Included Modules

Defined in:

lib/file_data.cr

Constructors

Instance Method Summary

Instance methods inherited from module Teeplate::AsDataEntry

path : String path, perm? : UInt16 | Nil perm?, size? : UInt64 | Nil size?, write_to(io : IO) write_to

Constructor Detail

def self.new(absolute_path : String, path : String, size : UInt64 | Nil = nil, perm : File::Permissions | Nil = nil, force : Bool = false) #

[View source]

Instance Method Detail

def absolute_path : String #

[View source]
def forces? : Bool #
Description copied from module Teeplate::AsDataEntry

:nodoc:


[View source]
def path : String #
Description copied from module Teeplate::AsDataEntry

Returns a path string relative to a base location.


[View source]
def perm : File::Permissions #

[View source]
def perm? : UInt16 #
Description copied from module Teeplate::AsDataEntry

Returns permission.

If no specific permission, returns nil.


[View source]
def size : UInt64 #

[View source]
def size? : UInt64 #
Description copied from module Teeplate::AsDataEntry

Returns data size.

If the size can't be determined, returns nil.


[View source]
def write_to(io : IO) #
Description copied from module Teeplate::AsDataEntry

Writes this data stream to a specified IO object.


[View source]