get_directory_from_file_path

Gets the directory path from a given file path.

Arguments

NameTypeDescriptionRequired

path_to_file

string

The full path to the file.

Returns

TypeDescription

string

Path to the directory containing the file, or None if not applicable.

Example

- name: get_directory_from_file_path
  arguments:
    path_to_file: <full-path-to-file>
  returns: <path-to-directory-of-file>

Last updated