fileutil

package
v0.0.0-...-9474aff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package fileutil provides utilities for operating files in remote wifi tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareOutDirFile

func PrepareOutDirFile(ctx context.Context, filename string) (*os.File, error)

PrepareOutDirFile prepares the base directory of the path under OutDir and opens the file.

func WriteTmp

func WriteTmp(ctx context.Context, host *ssh.Conn, pattern string, content []byte) (string, error)

WriteTmp writes the content to a temp file created by "mktemp $pattern" on host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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