Check whether the input is a file inside the system temp directory.
x (str or os.PathLike) – File path.
True if x is an existing file under the temp directory.
True
x
bool
Examples
>>> is_temp_file("/home/user/data.csv") False