ignore second cmd arg
This commit is contained in:
parent
32d5561fb6
commit
1786d37966
@ -100,7 +100,7 @@ func getCmd(method string) func(c *d.Client, p0, p1 string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func cmdLs(c *d.Client, p0, p1 string) (err error) {
|
func cmdLs(c *d.Client, p0, _ string) (err error) {
|
||||||
files, err := c.ReadDir(p0)
|
files, err := c.ReadDir(p0)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
fmt.Println(fmt.Sprintf("ReadDir: '%s' entries: %d ", p0, len(files)))
|
fmt.Println(fmt.Sprintf("ReadDir: '%s' entries: %d ", p0, len(files)))
|
||||||
@ -111,7 +111,7 @@ func cmdLs(c *d.Client, p0, p1 string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func cmdStat(c *d.Client, p0, p1 string) (err error) {
|
func cmdStat(c *d.Client, p0, _ string) (err error) {
|
||||||
file, err := c.Stat(p0)
|
file, err := c.Stat(p0)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
fmt.Println(file)
|
fmt.Println(file)
|
||||||
@ -129,21 +129,21 @@ func cmdGet(c *d.Client, p0, p1 string) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func cmdRm(c *d.Client, p0, p1 string) (err error) {
|
func cmdRm(c *d.Client, p0, _ string) (err error) {
|
||||||
if err = c.Remove(p0); err == nil {
|
if err = c.Remove(p0); err == nil {
|
||||||
fmt.Println("RM: " + p0)
|
fmt.Println("RM: " + p0)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func cmdMkdir(c *d.Client, p0, p1 string) (err error) {
|
func cmdMkdir(c *d.Client, p0, _ string) (err error) {
|
||||||
if err = c.Mkdir(p0, 0755); err == nil {
|
if err = c.Mkdir(p0, 0755); err == nil {
|
||||||
fmt.Println("MkDir: " + p0)
|
fmt.Println("MkDir: " + p0)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func cmdMkdirAll(c *d.Client, p0, p1 string) (err error) {
|
func cmdMkdirAll(c *d.Client, p0, _ string) (err error) {
|
||||||
if err = c.MkdirAll(p0, 0755); err == nil {
|
if err = c.MkdirAll(p0, 0755); err == nil {
|
||||||
fmt.Println("MkDirAll: " + p0)
|
fmt.Println("MkDirAll: " + p0)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user