factor recursive directory copying into a standalone utility function
save suspended session in scoped scratch storage