Marc Cornellà 49d34d00cd
fix(extract): fix conflict if compressed file has a folder of the same name
This change fixes the case where the compressed file (e.g. tools.tgz) only
contains a folder with the same name (e.g. tools) in its root folder.

tools.tgz:
|- tools
   |- fileA.txt
   |- fileB.txt
   \- fileC.txt

In that case, the "smart" folder creation mechanism will extract the files in
a folder "tools", and this extraction folder will contain a single folder with
the same name.

Before this fix, the tool would try to move out the inside folder to the parent
one, but there would already be a folder named "tools", so it would generate a
conflict.

This change first renames the inside folder to a random string, and only then
it is moved outside and the old extraction folder is deleted.
2023-04-06 21:06:16 +02:00
..
2021-08-06 15:51:19 +02:00
2023-03-06 11:25:47 +01:00
2021-12-28 14:34:09 +01:00
2021-12-28 14:34:09 +01:00
2020-10-09 12:35:13 +02:00
2022-12-02 13:49:00 +01:00
2023-02-12 16:05:06 +01:00
2020-09-26 12:38:31 +02:00
2023-04-02 12:54:55 +02:00
2023-02-22 12:14:22 +01:00
2020-09-29 23:35:29 +02:00
2022-10-03 17:03:53 +02:00
2022-10-24 12:07:12 +02:00
2022-01-05 09:23:55 +01:00
2022-10-03 17:03:53 +02:00
2023-03-10 15:52:44 +01:00
2023-03-01 11:23:32 +01:00
2022-10-03 17:03:53 +02:00
2020-09-01 11:52:32 +02:00