From 2f72943d8320aa74c5c09f84f738462f12410417 Mon Sep 17 00:00:00 2001 From: mkvolkov Date: Sun, 21 Aug 2022 16:50:09 +0300 Subject: [PATCH] rclone filesystem tested --- rclonetest/main.go | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 rclonetest/main.go diff --git a/rclonetest/main.go b/rclonetest/main.go deleted file mode 100644 index 15a3db3..0000000 --- a/rclonetest/main.go +++ /dev/null @@ -1,21 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "github.com/spf13/afero/rclonefs" -) - -func main() { - RFS, _ := rclonefs.CreateRCFS("pcloud_mv1:/cfg/json") - - file, err := RFS.OpenFile("../../obj1.json", os.O_RDWR | os.O_TRUNC, 0666) - if err != nil { - fmt.Printf("Error: %v\n", err) - os.Exit(1) - } - - file.WriteString("{\"game\":\"Max Payne\"}") - file.Close() -}