mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Merge branch '2765_vfs_directory_sizes'
* 2765_vfs_directory_sizes: Ticket #2765: Show directory sizes on any VFS is broken
This commit is contained in:
commit
876e006048
@ -1635,7 +1635,7 @@ single_dirsize_cmd (void)
|
|||||||
vfs_path_t *p;
|
vfs_path_t *p;
|
||||||
|
|
||||||
ui = compute_dir_size_create_ui ();
|
ui = compute_dir_size_create_ui ();
|
||||||
p = vfs_path_from_str_flags (entry->fname, VPF_NO_CANON);
|
p = vfs_path_from_str (entry->fname);
|
||||||
|
|
||||||
if (compute_dir_size (p, ui, compute_dir_size_update_ui, &marked, &total, TRUE) ==
|
if (compute_dir_size (p, ui, compute_dir_size_update_ui, &marked, &total, TRUE) ==
|
||||||
FILE_CONT)
|
FILE_CONT)
|
||||||
@ -1680,7 +1680,7 @@ dirsizes_cmd (void)
|
|||||||
uintmax_t total = 0;
|
uintmax_t total = 0;
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
|
|
||||||
p = vfs_path_from_str_flags (panel->dir.list[i].fname, VPF_NO_CANON);
|
p = vfs_path_from_str (panel->dir.list[i].fname);
|
||||||
ok = compute_dir_size (p, ui, compute_dir_size_update_ui, &marked, &total,
|
ok = compute_dir_size (p, ui, compute_dir_size_update_ui, &marked, &total,
|
||||||
TRUE) != FILE_CONT;
|
TRUE) != FILE_CONT;
|
||||||
vfs_path_free (p);
|
vfs_path_free (p);
|
||||||
|
Loading…
Reference in New Issue
Block a user