INNER CODE UNIT · Go

exportedFile

dundee/gdu · report/export.go:188

func exportedFile(file, parent fs.Item) *analyze.File {
	copied := &analyze.File{
		Name:   file.GetName(),
		Flag:   file.GetFlag(),
		Size:   file.GetSize(),
		Usage:  file.GetUsage(),
		Mtime:  file.GetMtime(),
		Mli:    file.GetMultiLinkedInode(),
		Parent: parent,
	}
	if symlink, ok := file.(fs.SymlinkItem); ok {
		copied.Symlink = symlink.GetSymlinkTarget()
	}
	return copied
}

func (ui *UI) topDir(dir fs.Item) fs.Item {
	// the export UI is never told about --show-apparent-size, so its top-N

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…