mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
plugin/zip: Now ignoring empty dirs
This commit is contained in:
parent
cf9b0c551d
commit
938f0d9754
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue