* i2psnark: Fix bug creating torrent with a single file in a directory

(thx oskar/Nightweb)
This commit is contained in:
zzz
2013-06-14 13:33:49 +00:00
parent dd451d3ccd
commit a90827c9b2

View File

@ -179,8 +179,7 @@ public class Storage
files.add(file); files.add(file);
} }
if (files.size() == 1) // FIXME: ...and if base file not a directory or should this be the only check? if (files.size() == 1 && !baseFile.isDirectory())
// this makes a bad metainfo if the directory has only one file in it
{ {
files = null; files = null;
lengthsList = null; lengthsList = null;