nitc :: CmdEntityFile :: init_file
# Init file related data
fun init_file: CmdMessage do
var mentity = self.mentity.as(not null)
var source_file = mentity.location.file
if source_file == null then return throw_warning
for file_name in file_names do
var file = source_file.filename / file_name
if not file.file_exists then continue
self.file = file
break
end
if file == null then return throw_warning
return new CmdSuccess
end
src/doc/commands/commands_ini.nit:271,2--288,4