stat

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat interface {
	// 読み込み可能かどうか
	CanRead() bool
	// 書き込み可能かどうか
	CanWrite() bool
	// 実行可能かどうか
	CanExecute() bool
}

Stat は、ファイルの読み取り・書き込み・実行の権限状態を判定するためのインターフェースを持ちます。

func Group

func Group(fi fs.FileInfo) Stat

Group は、指定された fs.FileInfo からグループの 読み取り・書き込み・実行の権限状態を判定します。

func Other

func Other(fi fs.FileInfo) Stat

Other は、指定された fs.FileInfo から他者の 読み取り・書き込み・実行の権限状態を判定します。

func User

func User(fi fs.FileInfo) Stat

User は、指定された fs.FileInfo からユーザの 読み取り・書き込み・実行の権限状態を判定します。

Jump to

Keyboard shortcuts

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