Resolve the specified POSIX path.

Like String.realpath, but with error handling.

Property definitions

saxophonit $ XophonReader :: realpath
	# Resolve the specified POSIX path.
	#
	# Like `String.realpath`, but with error handling.
	private fun realpath(path: String): MaybeError[String, Error] do
		var cs = path.to_cstring.file_realpath

		if cs.address_is_null then
			return new MaybeError[String, Error](null,
					new Error("File <{path}> not found."))
		else
			return new MaybeError[String, Error](cs.to_s, null)
		end
	end
lib/saxophonit/saxophonit.nit:730,2--742,4