You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our copy method should behave like cp command on linux:
cp sourceFile targetFolder / copy(sourceFile, targetFolder) should result in the sourceFile available as a copy in targetFolder/sourceFile
cp -rf sourceFolder targetFolder / copy(sourceFolder, targetFolder, FileCopyMode.COPY_TREE_OVERRIDE_FILES) should result in the sourceFolder available as a copy in targetFolder/sourceFolder
Actual behavior
While 1. is working already, 2. does not behave as expected.
Instead in case of 2. the contents of sourceFolder are copied to targetFolder so it behaves like cp -rf sourceFolder/* targetFolder.
As an result e.g. when we extract a DMG file containing some *.app folder then after copying that *.app folder is missing resulting in our MacOS app workaround stopping to work.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
Install a tool which is using a *.dmg as an archive.
Check the _ide/software/default/yourtool/yourtool/version/ folder
Comments/Hints:
We need to add a new constant to the file copy modes which will keep the root folder (getParent) inside the *.dmg file.
Affected version:
IDEasy: SNAPSHOT-2024.05.001
The text was updated successfully, but these errors were encountered:
Expected behavior
Our copy method should behave like
cp
command on linux:cp sourceFile targetFolder
/copy(sourceFile, targetFolder)
should result in thesourceFile
available as a copy intargetFolder/sourceFile
cp -rf sourceFolder targetFolder
/copy(sourceFolder, targetFolder, FileCopyMode.COPY_TREE_OVERRIDE_FILES)
should result in thesourceFolder
available as a copy intargetFolder/sourceFolder
Actual behavior
While 1. is working already, 2. does not behave as expected.
Instead in case of 2. the contents of
sourceFolder
are copied totargetFolder
so it behaves likecp -rf sourceFolder/* targetFolder
.As an result e.g. when we extract a DMG file containing some
*.app
folder then after copying that*.app
folder is missing resulting in our MacOS app workaround stopping to work.Steps to reproduce (bug) / Use Case of feature request (enhancement)
*.dmg
as an archive._ide/software/default/yourtool/yourtool/version/
folderComments/Hints:
We need to add a new constant to the file copy modes which will keep the root folder (
getParent
) inside the*.dmg
file.Affected version:
The text was updated successfully, but these errors were encountered: