Changeset 6371

Show
Ignore:
Timestamp:
12/01/08 12:57:10 (1 month ago)
Author:
morris
Message:

Merge from trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/P7/wired/wired/files.c

    r6172 r6371  
    835835        wi_pool_t                                       *pool; 
    836836        wi_fsenumerator_t                       *fsenumerator; 
    837         wi_string_t                                     *filepath, *virtualpath, *resolvedpath
     837        wi_string_t                                     *filepath, *virtualpath, *resolvedpath, *newpathprefix
    838838        wi_set_t                                        *set; 
    839839        wi_number_t                                     *number; 
     
    944944                                } 
    945945                                 
    946                                 if(type == WD_FILE_TYPE_DROPBOX) 
     946                                if(type == WD_FILE_TYPE_DROPBOX) { 
    947947                                        wi_fsenumerator_skip_descendents(fsenumerator); 
    948                                 else if(recurse) 
    949                                         wd_files_index_path_to_file(resolvedpath, file, wi_string_substring_from_index(filepath, pathlength)); 
     948                                } 
     949                                else if(recurse) { 
     950                                        if(pathprefix) 
     951                                                newpathprefix = wi_string_by_appending_path_component(pathprefix, wi_string_substring_from_index(filepath, pathlength + 1)); 
     952                                        else 
     953                                                newpathprefix = wi_string_substring_from_index(filepath, pathlength); 
     954                                         
     955                                        wd_files_index_path_to_file(resolvedpath, file, newpathprefix); 
     956                                } 
    950957                        } 
    951958