fmt
This commit is contained in:
		
							parent
							
								
									b781d56161
								
							
						
					
					
						commit
						c4b0d5c93d
					
				@ -1,10 +1,10 @@
 | 
			
		||||
package main
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	d "gowebdav"
 | 
			
		||||
	"flag"
 | 
			
		||||
	"os"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	d "gowebdav"
 | 
			
		||||
	"os"
 | 
			
		||||
	"strings"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -54,7 +54,8 @@ func main() {
 | 
			
		||||
				fmt.Println(err)
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			case "GET": c.Read(path)
 | 
			
		||||
		case "GET":
 | 
			
		||||
			c.Read(path)
 | 
			
		||||
 | 
			
		||||
		case "DELETE", "RM", "DEL":
 | 
			
		||||
			if err := c.Remove(path); err != nil {
 | 
			
		||||
@ -77,14 +78,16 @@ func main() {
 | 
			
		||||
				fmt.Println("MkDirAll: " + path)
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			default: Fail(nil)
 | 
			
		||||
		default:
 | 
			
		||||
			Fail(nil)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	} else if alen == 2 {
 | 
			
		||||
		a0 := flag.Args()[0]
 | 
			
		||||
		a1 := flag.Args()[1]
 | 
			
		||||
		switch *m {
 | 
			
		||||
			default: Fail(nil)
 | 
			
		||||
		default:
 | 
			
		||||
			Fail(nil)
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		Fail(nil)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user