goalie.is_temp_file

goalie.is_temp_file(x: str | PathLike[str]) bool

Check whether the input is a file inside the system temp directory.

Parameters:

x (str or os.PathLike) – File path.

Returns:

True if x is an existing file under the temp directory.

Return type:

bool

Examples

>>> is_temp_file("/home/user/data.csv")
False