Short name of the file at to_s

var path = "/tmp/somefile".to_path
assert path.filename == "somefile"

The result does not depend of the file system, thus is cached for efficiency.

Property definitions

core $ Path :: filename
	# Short name of the file at `to_s`
	#
	# ~~~
	# var path = "/tmp/somefile".to_path
	# assert path.filename == "somefile"
	# ~~~
	#
	# The result does not depend of the file system, thus is cached for efficiency.
	var filename: String = path.basename is lazy
lib/core/file.nit:389,2--397,45