Forech Iteration on FileSize List to Obtain a sublist of file of a certain Size

Certified Senior Developer

Given a list of files, having obtained the list of their relative sizes, I have to iterate on the list until I obtain a maximum size (for example 10MB) and from the next file start again with the same process, iterating until the end of the list

  Discussion posts and replies are publicly visible