Skip to content

Unnecessary flags in directory deletion #50

@belericant

Description

@belericant

Current Behavior
Removing a directory on *nix systems through a call to the s_delete_directory subroutine invokes rm -rf to remove a directory along with any files contained within. Calling the wrong path with elevated permissions can be dangerous. Only directories created by the program should be deleted, which should not necessitate the use of the force flag with correct filesystem permissions. If there are incorrect filesystem permissions, it is not the responsibility of the subroutine to rectify them.

Proposed Change
Change the system call to rm -r

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions