pathutil

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCloudSyncMarkTimeout = 2 * time.Second

Variables

This section is empty.

Functions

func CanonicalizePath

func CanonicalizePath(path string) string

func ComparableUserPathText

func ComparableUserPathText(value string) string

func ComparableUserPathTextFolded

func ComparableUserPathTextFolded(value string) string

func ComparableUserPathTextWithCase

func ComparableUserPathTextWithCase(value string) string

func ExpandPath

func ExpandPath(path string) string

func GetCwdRelativePath

func GetCwdRelativePath(path, cwd string) (string, bool)

func IsLocalPath

func IsLocalPath(value string) bool

func MarkPathIgnoredByCloudSync added in v0.82.0

func MarkPathIgnoredByCloudSync(
	ctx context.Context,
	path string,
	options CloudSyncMarkOptions,
)

MarkPathIgnoredByCloudSync applies supported best-effort cloud-provider ignore attributes. Unsupported platforms and command failures are silent, matching the advisory nature of the metadata.

func NormalizeUserPathText

func NormalizeUserPathText(value string) string

func ResolveReadPath

func ResolveReadPath(path, cwd string) (string, error)

func ResolveToCwd

func ResolveToCwd(path, cwd string) string

Types

type CloudSyncMarkOptions added in v0.82.0

type CloudSyncMarkOptions struct {
	GOOS       string
	Timeout    time.Duration
	RunCommand func(context.Context, string, []string) error
}

CloudSyncMarkOptions isolates platform and process boundaries for MarkPathIgnoredByCloudSync.

Jump to

Keyboard shortcuts

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