Categorygithub.com/go-waitfor/waitfor-fs
modulepackage
1.0.0
Repository: https://github.com/go-waitfor/waitfor-fs.git
Documentation: pkg.go.dev

# README

waitfor-fs

File system resource readiness assertion library

Quick start

package main

import (
	"context"
	"fmt"
	"github.com/go-waitfor/waitfor"
	"github.com/go-waitfor/waitfor-fs"
	"os"
)

func main() {
	runner := waitfor.New(fs.Use())

	err := runner.Test(
		context.Background(),
		[]string{"fs://./my-file.txt", "fs://./my-dir/"},
		waitfor.WithAttempts(5),
	)

	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}

# Functions

No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Structs

No description provided by the author