mirror of https://github.com/spf13/afero.git
rclone filesystem tested
This commit is contained in:
parent
d3bd8d73a0
commit
2f72943d83
|
@ -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()
|
|
||||||
}
|
|
Loading…
Reference in New Issue