afero/rclonetest/main.go

20 lines
238 B
Go
Raw Normal View History

2022-08-18 11:44:33 +03:00
package main
import (
2022-08-18 12:00:12 +03:00
"fmt"
2022-08-18 16:15:38 +03:00
"os"
2022-08-18 12:00:12 +03:00
2022-08-18 11:44:33 +03:00
"github.com/spf13/afero/rclonefs"
)
func main() {
2022-08-20 21:51:57 +03:00
RFS, _ := rclonefs.CreateRCFS("pcloud_mv1:/cfg")
2022-08-18 12:00:12 +03:00
2022-08-20 21:51:57 +03:00
err := RFS.RemoveAll("yml")
if err != nil {
fmt.Printf("Error: %v\n", err)
2022-08-18 16:15:38 +03:00
os.Exit(1)
}
2022-08-20 19:59:01 +03:00
2022-08-18 11:44:33 +03:00
}