syntax:functions:directory
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
syntax:functions:directory [2018/06/11 07:20] – created dmitry | syntax:functions:directory [2021/08/29 00:55] (current) – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== directory(text) ===== | + | ====== Directory(full_path) ====== |
+ | Category: | ||
+ | |||
+ | \\ | ||
+ | =====Description===== | ||
+ | This function extracts the directory path from a full file path, excluding the file name. | ||
+ | |||
+ | \\ | ||
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |full_path | ||
+ | |||
+ | **Return value type:** Text. | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | Return values containing //only// a root path will include the trailing backslash while non-root paths will //not// include the trailing backslash. | ||
+ | |||
+ | When a relative reference is used in a rooted path, only the dot or double-dot is returned //without// the trailing backslash. | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | | ||
+ | |||
+ | directory(' | ||
+ | |||
+ | directory(' | ||
+ | |||
+ | directory(' | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====See also===== | ||
+ | * [[syntax: | ||
+ | * [[syntax: | ||
- | Extracts the full directory path from a full file path. | ||
- | ^ Example | ||
- | | directory(' | ||
- | | directory(' |
syntax/functions/directory.1528716027.txt.gz · Last modified: 2018/06/11 07:20 by dmitry