bout_runners.utils.file_operations

Module containing file operation functions.

Functions

get_caller_dir()

Return the directory of the topmost caller file.

get_modified_time(file_path)

Return the modification time of a file path.

bout_runners.utils.file_operations.get_caller_dir() → pathlib.Path[source]

Return the directory of the topmost caller file.

Returns
caller_dirPath

The path of the topmost caller

bout_runners.utils.file_operations.get_modified_time(file_path: pathlib.Path) → str[source]

Return the modification time of a file path.

Parameters
file_pathPath

The file path to get the modification time from

Returns
modified_timestr

The modification time on ISO8601 format