Changeset 6371
- Timestamp:
- 12/01/08 12:57:10 (1 month ago)
- Files:
-
- branches/P7/wired/wired/files.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/P7/wired/wired/files.c
r6172 r6371 835 835 wi_pool_t *pool; 836 836 wi_fsenumerator_t *fsenumerator; 837 wi_string_t *filepath, *virtualpath, *resolvedpath ;837 wi_string_t *filepath, *virtualpath, *resolvedpath, *newpathprefix; 838 838 wi_set_t *set; 839 839 wi_number_t *number; … … 944 944 } 945 945 946 if(type == WD_FILE_TYPE_DROPBOX) 946 if(type == WD_FILE_TYPE_DROPBOX) { 947 947 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 } 950 957 } 951 958
