Your question is Script to Archive Files Over 1GB. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Andela Products needs a manifest of oversized files from a CI artifact directory before archiving them. Given file metadata, find every file whose size is strictly greater than 1 GiB.
The archive operation is represented by the returned list of file paths. Preserve the input order so the manifest is deterministic.
Implement archive_large_files(files), where files is a list of dictionaries. Each dictionary contains:
path, a unique string representing the file pathsizeBytes, a non-negative integer containing the file size in bytesReturn a list of paths for files larger than 1,073,741,824 bytes, or an empty list when no file qualifies.
def archive_large_files(files):