utils

package
v4.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package utils provides various utility function such as querying for the existance (or non-existance) of files and folders, automatic creation of required folders, and tools to query the health of your RPC providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EstablishFolder

func EstablishFolder(rootPath string) error

EstablishFolder ensures that the given folder exists. If any folders in the path must be created, they will be created with 0755 permissions. Returns an error or nil on sucess.

func FileExists

func FileExists(filename string) bool

FileExists returns true if the file exists and is not a folder, false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL