This function generates a MANIFEST.txt file that lists all files in the specified paths, along with their sizes. It recursively includes files from directories and skips paths that do not exist. The manifest excludes the manifest file itself if present in the list.
Value
This function does not return any value. It creates a MANIFEST.txt
file at the specified location,
which contains a list of all files (including their sizes) in the provided paths.
The file paths are relative to the specified temp_dir
, and the manifest excludes the manifest file itself if present.