<< CL_isAlmostEqual Utilities CL_plot_earthMap >>

CelestLab >> Utilities > CL_path

CL_path

File paths (search in selected directories)

Calling Sequence

paths = CL_path(names [, directories, opt, err, hid])

Description

Parameters

names:

(string) Name(s) of file(s) to be looked for (may contain wildcards). (1xN)

directories:

(string, optional) Directories to be searched. Default is "" (meaning: %CL_PATH if exists, '.' otherwise) (1xP)

opt:

(string, optional) Search option: "std" or "all". Default is "std" (1x1)

err:

(boolean, optional) %t is an error is raised if no file is found. Default is %t (1x1)

hid:

(boolean, optional) %t if hidden directories are included in the search. Default is %f (1x1)

paths:

(string) File path(s) or [] if no file is found (1xQ)

Authors

Examples

// Looks for "readme.txt" in CL_home() (sub-directories not searched)
CL_path("readme.txt", CL_home())

// Returns all "*.scd" file (deep search)
CL_path("*.scd", CL_home(), "all")

Report an issue
<< CL_isAlmostEqual Utilities CL_plot_earthMap >>