Method: FileSet#get_file

Defined in:
lib/fileset.rb

#get_file(path) ⇒ Object



172
173
174
175
176
177
178
179
180
181
# File 'lib/fileset.rb', line 172

def get_file(path)
  path = unpath(path)
  file_rep = @files[path]
  unless (file_path = find(path)).nil?
    file = FileSetWorks::LiveFile.new(file_path, file_rep)
    file.load
    return file
  end
  return file_rep
end