Utopia SourceUtopiaStaticLocalFile

class LocalFile

Represents a local file on disk which can be served directly, or passed upstream to sendfile.

Definitions

def to_path

Fit in with Rack::Sendfile

Implementation

def to_path
	full_path
end

def empty?

This reflects whether calling each would yield anything.

Implementation

def empty?
	bytesize == 0
end