Closed mtbc closed 5 years ago
Tested on Windows, like expected "setting '-l none' because links cannot be created"... But I also get that on OSX, where I definitely can create symlinks.
That's strange and wrong, thank you for checking. In an admin console on Windows do you also get the warning?
Yes, running on Windows as admin too.
Edit: Also on Debian:
dominik@devuan:~/Downloads/OMERO.downloader-0.1.5-SNAPSHOT$ ./download.sh -b /home/dominik/tmp/ -u dlindner -s demo.openmicroscopy.org -w ***** -f binary Image:61906
finding target images... done
mapping filesets of images... done
setting '-l none' because links cannot be created
(1/1) determining files used by image 61906... done
(1/1, 1/1) commencing download of file 201802.......... done
Thank you, let me see if I can figure how I broke it. :smiley:
Should be fixed now, sorry: that's probably what I get for a last-minute fiddling before pushing.
Thanks @mtbc . Fixed now 👍
With
-f binary,companion
links are made fromFileset/
andImage/
unless-l none
is specified. This option must be specified for some regular Windows users because they do not have permission to link files!This PR makes for a softer landing in situations like https://github.com/ome/omero-downloader/pull/6#issuecomment-458059256 such that it warns then still performs the download into
Repository/
without making the user specify-l none
explicitly.If reviewing the code diff, probably easier as separate commits as a large one is whitespace-only. The refactoring was to ensure that
finally
blocks would be executed.