Changeset 5047
- Timestamp:
- 11/10/07 13:15:53 (8 months ago)
- Files:
-
- wired/trunk/wired/files.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/wired/files.c
r5022 r5047 57 57 58 58 59 static wi_file_offset_t wd_files_count_path(wi_string_t * );59 static wi_file_offset_t wd_files_count_path(wi_string_t *, wi_boolean_t); 60 60 61 61 static void wd_files_move_thread(wi_runtime_instance_t *); … … 218 218 case WD_FILE_TYPE_DROPBOX: 219 219 if(account->view_dropboxes) 220 size = wd_files_count_path(filepath );220 size = wd_files_count_path(filepath, true); 221 221 else 222 222 size = 0; … … 225 225 case WD_FILE_TYPE_DIR: 226 226 case WD_FILE_TYPE_UPLOADS: 227 size = wd_files_count_path(filepath );227 size = wd_files_count_path(filepath, true); 228 228 break; 229 229 … … 279 279 280 280 281 static wi_file_offset_t wd_files_count_path(wi_string_t *path ) {281 static wi_file_offset_t wd_files_count_path(wi_string_t *path, wi_boolean_t interactive) { 282 282 WI_FTS *fts; 283 283 WI_FTSENT *p; … … 291 291 wi_log_warn(WI_STR("Could not open %@: %s"), 292 292 path, strerror(errno)); 293 wd_reply_error(); 293 294 if(interactive) 295 wd_reply_error(); 294 296 295 297 return 0; … … 360 362 case WD_FILE_TYPE_DROPBOX: 361 363 if(wd_user_account(user)->view_dropboxes) 362 size = wd_files_count_path(realpath );364 size = wd_files_count_path(realpath, true); 363 365 else 364 366 size = 0; … … 367 369 case WD_FILE_TYPE_DIR: 368 370 case WD_FILE_TYPE_UPLOADS: 369 size = wd_files_count_path(realpath );371 size = wd_files_count_path(realpath, true); 370 372 break; 371 373 … … 636 638 case WD_FILE_TYPE_DROPBOX: 637 639 if(account->view_dropboxes) 638 size = wd_files_count_path(filepath );640 size = wd_files_count_path(filepath, true); 639 641 else 640 642 size = 0; … … 643 645 case WD_FILE_TYPE_DIR: 644 646 case WD_FILE_TYPE_UPLOADS: 645 size = wd_files_count_path(filepath );647 size = wd_files_count_path(filepath, true); 646 648 break; 647 649 … … 960 962 case WD_FILE_TYPE_DIR: 961 963 case WD_FILE_TYPE_UPLOADS: 962 size = wd_files_count_path(filepath );964 size = wd_files_count_path(filepath, false); 963 965 break; 964 966
