rclone filesystem tested

This commit is contained in:
mkvolkov 2022-08-21 16:50:09 +03:00
parent d3bd8d73a0
commit 2f72943d83
1 changed files with 0 additions and 21 deletions

View File

@ -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()
}