Extract mockFs function.
Add test for nested folders.
Create destination folders if they don't exist.