Skip to contents

Get the various parts of a file with path string.

Usage

fileparts(filename.with.path)

Arguments

filename.with.path

A string of a filename with a path

Value

A list with the following components:

pathname

The path name

filename

The file name

fileext

The file extension

Note

This is a modified version of the same function in the matlab R-package.

See also

Other MATLAB: cell(), diag_matlab(), feval(), isempty(), ones(), rand(), randn(), size(), tic(), toc(), zeros()

Examples


fileparts("ggg/ttt/lll.R")
#> $pathname
#> [1] "ggg/ttt"
#> 
#> $filename
#> [1] "lll"
#> 
#> $fileext
#> [1] ".R"
#>