Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. func getFileInfo(path string){
  2.     fileInfo,err := os.Stat(path)
  3.     if err != nil{
  4.         log.Error("find file error:",err.Error())
  5.     }
  6.     fmt.Println("file size:",fileInfo.Size())
  7.     fmt.Println("file name:",fileInfo.Name())
  8.     fmt.Println("file mode:",fileInfo.Mode())
  9.     fmt.Println("file ModTime:",fileInfo.ModTime())
  10.     fmt.Println("file IsDir:",fileInfo.IsDir())
  11.     fmt.Println("file Sys:",fileInfo.Sys())
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top