dirname

abstract var dirname: String(source)

The directory name of the current module.

This is the same as the path.dirname() of the import.meta.filename.

Caveat: only present on file: modules.

Since

v21.2.0, v20.11.0