extension
The extension of this file or directory component.
Declaration
var `extension`: String? { get }Discussion
If self does not contain a . anywhere, or only at the start, returns nil. Otherwise, returns everything after the dot.
Examples:
foo.txt => txtfoo.tar.gz => gzFoo.app => app.hidden => nil.. => nil