var files = "/etc".files
assert files.has("issue")Returns an empty array in case of error
files = "/etc/issue".files
assert files.is_emptyTODO find a better way to handle errors and to give them back to the user.
	# Returns entries contained within the directory represented by self.
	#
	#     var files = "/etc".files
	#     assert files.has("issue")
	#
	# Returns an empty array in case of error
	#
	#     files = "/etc/issue".files
	#     assert files.is_empty
	#
	# TODO find a better way to handle errors and to give them back to the user.
	fun files: Array[String]
	do
		var res = new Array[String]
		var d = new NativeDir.opendir(to_cstring)
		if d.address_is_null then return res
		loop
			var de = d.readdir
			if de.address_is_null then break
			var name = de.to_s
			if name == "." or name == ".." then continue
			res.add name
		end
		d.closedir
		return res
	end
					lib/core/file.nit:1327,2--1354,4