github.com/vmware/govmomi@v0.51.0/toolbox/toolbox_windows.go (about) 1 // © Broadcom. All Rights Reserved. 2 // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. 3 // SPDX-License-Identifier: Apache-2.0 4 5 package toolbox 6 7 import ( 8 "fmt" 9 "os" 10 ) 11 12 func fileExtendedInfoFormat(dir string, info os.FileInfo) string { 13 const format = "<fxi>" + 14 "<Name>%s</Name>" + 15 "<ft>%d</ft>" + 16 "<fs>%d</fs>" + 17 "<mt>%d</mt>" + 18 "<ct>%d</ct>" + 19 "<at>%d</at>" + 20 "</fxi>" 21 22 props := 0 23 size := info.Size() 24 mtime := info.ModTime().Unix() 25 ctime := 0 26 atime := 0 27 28 return fmt.Sprintf(format, info.Name(), props, size, mtime, ctime, atime) 29 }