Ordered folder names to search for to find assets
Ordered folder names to search for to find functions
Verifies a given path against the restrictions put up by the Twilio Runtime.
a potential absolute path for a Function or Asset
Throws the error it receives and if it's an HTTP Error it will convert it to a ClientApiError
Checks if a given file exists by checking if we have read & write access
full path of the file to check
Explictly removes username and password from a URL.
any URL string
Tries to determine the content type of a string or buffer
the content to check
a valid content type or undefined
Retrieves all (nested) files from a given directory.
If an extension is specified it will be used to filter the results.
the directory to be checked
Given a list of directory names it will return the first one that exists in the base path.
Important: Performs synchronous file system reading
Retrieves a list of functions and assets existing in a given base directory Will check for both "functions" and "src" as directory for functions and "assets" and "static" for assets
lets you override the folders to use
Generated using TypeDoc