Permalink
Browse files

format README

  • Loading branch information...
1 parent ecd0a26 commit 895b4efff80c4ad268a8c7cc8133f0af7da686a3 @smallfish committed May 10, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 README
View
3 README
@@ -21,12 +21,13 @@ func main() {
fmt.Println("error: login failure")
os.Exit(-1)
}
- ftp.Request("TYPE I")
// pwd
ftp.Pwd()
fmt.Println("code:", ftp.Code, ", message:", ftp.Message)
// mkdir new dir
ftp.Mkd("/smallfish")
+ // stor new file
+ ftp.Request("TYPE I")
b, _ := ioutil.ReadFile("/path/a.txt")
ftp.Stor("/smallfish/a.txt", b)
// quit

0 comments on commit 895b4ef

Please sign in to comment.