Subversion Repositories freemyipod

Rev

Rev 783 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 783 Rev 784
Line 81... Line 81...
81
#endif
81
#endif
82
    void* new_ptr;
82
    void* new_ptr;
83
    struct emcore_dir_entry* cache_entry;
83
    struct emcore_dir_entry* cache_entry;
84
    char* new_name;
84
    char* new_name;
85
    size_t new_name_len = 1;
85
    size_t new_name_len = 1;
-
 
86
    
-
 
87
    if (0 == strcmp(entry->name, ".") || 0 == strcmp(entry->name, ".."))
-
 
88
    {
-
 
89
        return;
-
 
90
    }
86
 
91
    
87
    new_name_len += strlen(dir_name) + strlen(entry->name);
92
    new_name_len += strlen(dir_name) + strlen(entry->name);
88
 
93
 
89
    if (strcmp(dir_name, "/") != 0)
94
    if (strcmp(dir_name, "/") != 0)
90
    {
95
    {
91
        ++new_name_len;
96
        ++new_name_len;
Line 202... Line 207...
202
        return;
207
        return;
203
    }
208
    }
204
 
209
 
205
    for (i = 0; i < emcore_dir_cache_length; ++i)
210
    for (i = 0; i < emcore_dir_cache_length; ++i)
206
    {
211
    {
207
        fprintf(stderr, "cache_dump: [%s] 0x%08x %d %d %lu\n", emcore_dir_entry_cache[i].name, emcore_dir_entry_cache[i].attributes, emcore_dir_entry_cache[i].size, emcore_dir_entry_cache[i].startcluster, fat_time_to_unix_ts(emcore_dir_entry_cache[i].wrtdate, emcore_dir_entry_cache[i].wrttime));
212
        fprintf(stderr, "cache_dump: [%s] / attr: 0x%08x / size: %d / startcluster: %d / ts: %lu\n", emcore_dir_entry_cache[i].name, emcore_dir_entry_cache[i].attributes, emcore_dir_entry_cache[i].size, emcore_dir_entry_cache[i].startcluster, fat_time_to_unix_ts(emcore_dir_entry_cache[i].wrttime, emcore_dir_entry_cache[i].wrtdate));
208
    }
213
    }
209
}
214
}
210
#endif
215
#endif