apps-script-utils 2.1.1 Help

path module

Functions for working with file paths and URLs.

Function

Return type

Brief description

isAbsolute

Boolean

Determines if a given path is an absolute path.

isRelative

Boolean

Determines if a given path is a relative path.

isValidDomain

Boolean

Validates if a string is a properly formatted domain name.

join

String

Joins all given path segments together using the platform-specific separator.

nonAbsolute New

Boolean

Validates if a path is not absolute.

nonRelative New

Boolean

Validates if a path is not relative.

nonValidDomain New

Boolean

Validates if a value is not a valid domain name.

normalize

String

Normalizes a path by resolving . and .. segments.

parse

ParsedPath

Breaks down a path into an object containing its constituent parts (root, dir, base, ext, name).

requireAbsolute New

String

Ensures a path is absolute, throwing otherwise.

requireRelative New

String

Ensures a path is relative, throwing otherwise.

requireValidDomain New

String

Ensures a value is a valid domain name, throwing otherwise.

23 September 2026

This documentation was generated with AI (Claude) from the library's source code.