Description
App currently allows copying a parent directory into a child directory, causing stack overflow / infinite recursion due to recursive copying
Suggested Fix:
Update copy_recursively function to check if the source directory of a copy operation is a parent of the destination, and return an Err if that is the case.
Description
App currently allows copying a parent directory into a child directory, causing stack overflow / infinite recursion due to recursive copying
Suggested Fix:
Update
copy_recursivelyfunction to check if the source directory of a copy operation is a parent of the destination, and return anErrif that is the case.