MCPcopy Create free account
hub / github.com/coreutils/coreutils / update_current_files_info

Function update_current_files_info

src/ls.c:4004–4017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4002/* Cache values based on attributes global to all files. */
4003
4004static void
4005update_current_files_info (void)
4006{
4007 /* Cache screen width of name, if needed multiple times. */
4008 if (sort_type == sort_width
4009 || (line_length && (format == many_per_line || format == horizontal)))
4010 {
4011 for (idx_t i = 0; i < cwd_n_used; i++)
4012 {
4013 struct fileinfo *f = sorted_file[i];
4014 f->width = fileinfo_name_width (f);
4015 }
4016 }
4017}
4018
4019/* Sort the files now in the table. */
4020

Callers 1

sort_filesFunction · 0.85

Calls 1

fileinfo_name_widthFunction · 0.85

Tested by

no test coverage detected