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 19:59:01 +03:00
|
|
|
RFS, _ := rclonefs.CreateRCFS("pcloud_mv1:/cfg/json")
|
2022-08-18 12:00:12 +03:00
|
|
|
|
2022-08-20 11:18:41 +03:00
|
|
|
|
2022-08-20 19:59:01 +03:00
|
|
|
f, e := RFS.Create("../obj3.json")
|
|
|
|
if e != nil {
|
|
|
|
fmt.Printf("Error: %v\n", e)
|
2022-08-18 16:15:38 +03:00
|
|
|
os.Exit(1)
|
|
|
|
}
|
2022-08-20 19:59:01 +03:00
|
|
|
|
|
|
|
defer f.Close()
|
2022-08-18 11:44:33 +03:00
|
|
|
}
|