ParsedPath

sealed external interface ParsedPath(source)

A parsed path object generated by path.parse() or consumed by path.format().

Properties

Link copied to clipboard
abstract var base: String

The file name including extension (if any) such as 'index.html'

Link copied to clipboard
abstract var dir: String

The full directory path such as '/home/user/dir' or 'c:\path\dir'

Link copied to clipboard
abstract var ext: String

The file extension (if any) such as '.html'

Link copied to clipboard
abstract var name: String

The file name without extension (if any) such as 'index'

Link copied to clipboard
abstract var root: String

The root of the path such as '/' or 'c:\'