localfilereader

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package localfilereader provides utility functions for reading files and permissions from the local filesystem.

Index

Constants

View Source
const (
	SetuidFlag = 04000
	SetgidFlag = 02000
	StickyFlag = 01000
)

Flags for special UNIX permission bits.

Variables

This section is empty.

Functions

func FilePermissions

func FilePermissions(ctx context.Context, path string) (*apb.PosixPermissions, error)

FilePermissions returns unix permission-related data for the specified file or directory.

func OpenDir added in v1.1.6

func OpenDir(ctx context.Context, dirPath string) (scanapi.DirReader, error)

OpenDir opens the specified directory to list its content.

func OpenFile

func OpenFile(ctx context.Context, path string) (io.ReadCloser, error)

OpenFile opens the specified file for reading.

Types

This section is empty.

Jump to

Keyboard shortcuts

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