MarginallyClever / Robot-Overlord-App

Simulation and control software for robots
https://www.marginallyclever.com/
GNU General Public License v2.0
168 stars 49 forks source link

import from desktop copies entire desktop to Scene folder #143

Closed i-make-robots closed 1 year ago

i-make-robots commented 1 year ago

Describe the bug Import action copies the .RO file and all adjacent files recursively to the $USERPATH/RobotOverlord/Scene folder.

To Reproduce Steps to reproduce the behavior:

  1. Create any scene
  2. save to desktop
  3. restart app
  4. load saved scene. Note large delay.
  5. look in $USERPATH/RobotOverlord/Scene folder. RO file and all other desktop contents are in the Scene folder.

Expected behavior It should only copy the .RO and relevant files.

Platform (please complete the following information):

i-make-robots commented 1 year ago

problem is caused by Project::copyDiskAssetsToScenePath()

        FileUtils.copyDirectory(
                new File(source.getPath()),
                new File(destinationPath),
                dotFileFilter);

copies everything, not just assets directly related to this project.

github-actions[bot] commented 1 year ago

Stale issue message