mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Ticket #2765: Show directory sizes on any VFS is broken
Command "Show directory sizes" shows zero when executed on ftp, utar, fish etc. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
461b3f710a
commit
117aa67155
@ -1635,7 +1635,7 @@ single_dirsize_cmd (void)
|
||||
vfs_path_t *p;
|
||||
|
||||
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) ==
|
||||
FILE_CONT)
|
||||
@ -1680,7 +1680,7 @@ dirsizes_cmd (void)
|
||||
uintmax_t total = 0;
|
||||
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,
|
||||
TRUE) != FILE_CONT;
|
||||
vfs_path_free (p);
|
||||
|
Loading…
Reference in New Issue
Block a user