plugin/zip: Now ignoring empty dirs

This commit is contained in:
Mirek Fidler 2025-01-28 15:23:05 +01:00
parent cf9b0c551d
commit 938f0d9754

View file

@ -5,6 +5,8 @@ namespace Upp {
void Zip::WriteFolder(const char *path, Time tm)
{
String p = UnixPath(path);
if(p.GetCount() == 0)
return; // LibreOffice refuses xlsx with "/" folder..
if(*p.Last() != '/')
p.Cat('/');
WriteFile(~p, 0, p, Null, tm, false);