Created
May 28, 2016 12:09
-
-
Save scbizu/9143162026b8c577b5be30fc257ab2c9 to your computer and use it in GitHub Desktop.
[LINUX/OSX ENV]golang put file in a dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os/exec" | |
) | |
func main() { | |
MVcmd := exec.Command("mv", "Ncell.png", "test") | |
err := MVcmd.Run() | |
if err != nil { | |
fmt.Println("MV failed") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment