googlefonts / fontbakery-dashboard

A library-scale web dashboard for Font Bakery, no longer developed
Apache License 2.0
28 stars 10 forks source link

zip file downloads on Mac unpack into directory "ofl" #154

Open graphicore opened 4 years ago

graphicore commented 4 years ago

@vv-monsalve reported this issue.

In OSX when unpacking a zip file that contains only one folder at the top level, the resulting folder is called like that top level folder.

In our files packages we have a structure like this (ABeeZee.zip):

─── ofl
    └── abeezee
        ├── ABeeZee-Italic.ttf
        ├── ABeeZee-Regular.ttf
        ├── DESCRIPTION.en_us.html
        ├── FONTLOG.txt
        ├── METADATA.pb
        └── OFL.txt

On a Mac this results in a dir called ofl and subsequent unpacked zips in ofl 1, ofl 2 etc.

2019-11-13

This is similar to the issue solved in 3ea75bb2a2d8c83c2fedd8b721bf428bc52666df but just appeared with the files packages with f811b0423d0e27d5f4be918b36e8be9fec466794 fixing #149

[rant on] My personal opinion is that the OSX behaviour is annoying and a bad engineering decision. [rant off]

I'll let this sit for a moment to figure out an elegant solution for it.