Description Usage Arguments Value
hasTrailingSlash checks for a trailing slash '/' in a path string, addTrailingSlash adds a slash if it isn't already present, and stripFileExtension strips the final file extension (.txt, etc.) from a given file name
1 | hasTrailingSlash(dirpath)
|
dirpath |
a string containing a path to a directory |
filepath |
a string containing a path to a file |
hasTrailiingSlash returns a boolean flag. addTrailingSlash returns the directory path, and stripFileExtension returns the file with the extension removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.