go file 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 if srcFile, err = os.Open(localPath); err != nil { logger.Errorf("failed to read src file: %v", err) return } defer srcFile.Close() fileInfo, err := srcFile.Stat() fileSize := fileInfo.Size() // file size os.PathSeparator file, _ := os.Getwd() log.Println("current path:", file) file, _ = exec.LookPath(os.Args[0]) log.Println("exec path:",