Awee

File System

Pull pieces out of file paths — directory, name, and extension.

File System

ModifierDescription
dirnameDirname returns the directory portion of a file path.
extFilenameExt returns the file extension without the leading dot.
ext-dotFilenameExtDot returns the file extension including the leading dot.
ext-prependFilenamePrependExt inserts an additional extension before the existing file extension.
ext-trimFilenameTrimExt returns the file path without its extension.
filenameFilename returns the base file name from a path, including the extension.

How is this guide?

On this page