path

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &starlarkstruct.Module{
	Name: "path",
	Members: starlark.StringDict{
		"sep":      starlark.String(string([]rune{filepath.Separator})),
		"is_abs":   NewIsAbs(),
		"abs":      NewAbs(),
		"base":     NewBase(),
		"dir":      NewDir(),
		"join":     NewJoin(),
		"split":    NewSplit(),
		"splitext": NewSplitext(),
	},
}

def path():

"""
The path module provides utility functions for manipulating host-specific
paths. This module uses either forward- or backwards-facing slashes for
separating path components, depending on the host operating system.
"""

@attribute
def sep():
    """
    The host-specific path separator.
    """

@function("isAbs")
def is_abs():
    pass

@function("abs")
def abs():
    pass

@function("base")
def base():
    pass

@function("dir")
def dir():
    pass

@function("Join")
def join():
    pass

@function("split")
def split():
    pass

@function("splitext")
def splitext():
    pass

Functions

func Abs

func Abs(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Base

func Base(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Dir

func Dir(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func IsAbs

func IsAbs(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Join

func Join(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

def join(components):

"""
Joins any number of path elements into a single path, separating them
with a host-specific separator. Empty elements are ignored.
"""

func NewAbs

func NewAbs() *starlark.Builtin

func NewBase

func NewBase() *starlark.Builtin

func NewDir

func NewDir() *starlark.Builtin

func NewIsAbs

func NewIsAbs() *starlark.Builtin

func NewJoin

func NewJoin() *starlark.Builtin

func NewSplit

func NewSplit() *starlark.Builtin

func NewSplitext

func NewSplitext() *starlark.Builtin

func Split

func Split(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

func Splitext

func Splitext(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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