forked from I2P_Developers/i2p.i2p
* i2psnark: Fix bug creating torrent with a single file in a directory
(thx oskar/Nightweb)
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user