@Override
    public boolean equals (Object obj) {
        if (!(obj instanceof TorrentFileInfo)) {
            return false;
        }

        TorrentFileInfo tfi = (TorrentFileInfo) obj;
        return tfi.length == length && path.equals(tfi.path);
    }