Show
Ignore:
Timestamp:
12/23/07 03:05:00 (4 years ago)
Author:
rakshasa
Message:

* Added "d.set_directory_base" command that handles single and multi
file torrent equally.

* Fixed man page entry on 'umask', it should be 0022 not 0664.

* Cleaned up File and FileList? classes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libtorrent/src/torrent/data/file.cc

    r1019 r1021  
    143143} 
    144144 
     145void 
     146File::set_match_depth(File* left, File* right) { 
     147  uint32_t level = 0; 
     148 
     149  Path::const_iterator itrLeft = left->path()->begin(); 
     150  Path::const_iterator itrRight = right->path()->begin(); 
     151 
     152  while (itrLeft != left->path()->end() && itrRight != right->path()->end() && *itrLeft == *itrRight) { 
     153    itrLeft++; 
     154    itrRight++; 
     155    level++; 
     156  } 
     157 
     158  left->m_matchDepthNext = level; 
     159  right->m_matchDepthPrev = level; 
     160} 
     161 
    145162bool 
    146163File::resize_file() {