fix slashes
This commit is contained in:
parent
d4b8ebb4b2
commit
7caa8c8b7d
@ -69,7 +69,7 @@ func getProps(r *response, status string) *props {
|
||||
}
|
||||
|
||||
func (c *Client) ReadDir(path string) ([]os.FileInfo, error) {
|
||||
path = FixSlash(path)
|
||||
path = FixSlashes(path)
|
||||
files := make([]os.FileInfo, 0)
|
||||
skipSelf := true
|
||||
parse := func(resp interface{}) {
|
||||
|
@ -39,7 +39,7 @@ func main() {
|
||||
switch *m {
|
||||
case "LIST", "PROPFIND":
|
||||
if files, err := c.ReadDir(path); err == nil {
|
||||
fmt.Println(len(files))
|
||||
fmt.Println(fmt.Sprintf("Resources: %d - %s", len(files), path))
|
||||
for _, f := range files {
|
||||
fmt.Println(f)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user