Skip to content

Copy Command can create max depth directories #1

@rates37

Description

@rates37

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions