Is there an existing issue for this?
Operating System
Linux
CKAN Version
v1.36.0
Games
KSP 1
Game Version
v1.24.5 or something
Did you make any manual changes to your game folder (i.e., not via CKAN)?
No response
Describe the bug
I tried to clone my default instance, Kerbal Space Program, to a new instance called RP1, and thought I would fit the new instance into a subdirectory of the original instance folder. It was taking a while so I left it and forgot about it, and lo and behold, I have 600 gigabytes of RP1 instance, due to CKAN repeatedly copying the files it copied into RP1 into itself.
CKAN should either detect when to not copy recursively, using some standard operating system copy tool that doesn't do this, or throw an error if the canonicalised path of the target folder is a subdirectory of the canonicalised path of the source directory.
Steps to reproduce
Clone an instance and set the target directory to a subdirectory of the original
Relevant log output
No response
Is there an existing issue for this?
Operating System
Linux
CKAN Version
v1.36.0
Games
KSP 1
Game Version
v1.24.5 or something
Did you make any manual changes to your game folder (i.e., not via CKAN)?
No response
Describe the bug
I tried to clone my default instance, Kerbal Space Program, to a new instance called RP1, and thought I would fit the new instance into a subdirectory of the original instance folder. It was taking a while so I left it and forgot about it, and lo and behold, I have 600 gigabytes of RP1 instance, due to CKAN repeatedly copying the files it copied into RP1 into itself.
CKAN should either detect when to not copy recursively, using some standard operating system copy tool that doesn't do this, or throw an error if the canonicalised path of the target folder is a subdirectory of the canonicalised path of the source directory.
Steps to reproduce
Clone an instance and set the target directory to a subdirectory of the original
Relevant log output
No response