* 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);
}
if (files.size() == 1) // FIXME: ...and if base file not a directory or should this be the only check?
// this makes a bad metainfo if the directory has only one file in it
if (files.size() == 1 && !baseFile.isDirectory())
{
files = null;
lengthsList = null;