Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.path.filepath
  • Platforms: .NET, .NET Standard 2.0, Island

 

constructor Island

 

constructor

 

__Global()

 

init()

Abs

 

// .NET, Island
class method Abs(path: string): tuple of (string, error)
// .NET Standard 2.0
class method Abs(path: string): ValueTuple<string, error>

 

// .NET, Island
static (string, error) Abs(string path)
// .NET Standard 2.0
static ValueTuple<string, error> Abs(string path)

 

// .NET, Island
static func Abs(_ path: string) -> (string, error)
// .NET Standard 2.0
static func Abs(_ path: string) -> ValueTuple<string, error>

 

// .NET, Island
func Abs(path string) (string, error)
// .NET Standard 2.0
func Abs(path string) ValueTuple<string, error>

Parameters:

  • path:

Base

 

class method Base(path: string): string

 

static string Base(string path)

 

static func Base(_ path: string) -> string

 

func Base(path string) string

Parameters:

  • path:

Clean

 

class method Clean(path: string): string

 

static string Clean(string path)

 

static func Clean(_ path: string) -> string

 

func Clean(path string) string

Parameters:

  • path:

Dir

 

class method Dir(path: string): string

 

static string Dir(string path)

 

static func Dir(_ path: string) -> string

 

func Dir(path string) string

Parameters:

  • path:

ErrBadPattern

 

class var ErrBadPattern: error;

 

static error ErrBadPattern

 

static var ErrBadPattern: error

 

ErrBadPattern error

EvalSymlinks

 

// .NET, Island
class method EvalSymlinks(path: string): tuple of (string, error)
// .NET Standard 2.0
class method EvalSymlinks(path: string): ValueTuple<string, error>

 

// .NET, Island
static (string, error) EvalSymlinks(string path)
// .NET Standard 2.0
static ValueTuple<string, error> EvalSymlinks(string path)

 

// .NET, Island
static func EvalSymlinks(_ path: string) -> (string, error)
// .NET Standard 2.0
static func EvalSymlinks(_ path: string) -> ValueTuple<string, error>

 

// .NET, Island
func EvalSymlinks(path string) (string, error)
// .NET Standard 2.0
func EvalSymlinks(path string) ValueTuple<string, error>

Parameters:

  • path:

Ext

 

class method Ext(path: string): string

 

static string Ext(string path)

 

static func Ext(_ path: string) -> string

 

func Ext(path string) string

Parameters:

  • path:

FromSlash

 

class method FromSlash(path: string): string

 

static string FromSlash(string path)

 

static func FromSlash(_ path: string) -> string

 

func FromSlash(path string) string

Parameters:

  • path:

Glob

 

class method Glob(pattern: string): tuple of (matches: Slice<string>, err: error)

 

static (Slice<string> matches, error err) Glob(string pattern)

 

static func Glob(_ pattern: string) -> (matches:Slice<string>, err:error)

 

func Glob(pattern string) (matches Slice<string>, err error)

Parameters:

  • pattern:

IsAbs (String): Boolean Island

 

class method IsAbs(s: String): Boolean

 

static Boolean IsAbs(String s)

 

static func IsAbs(_ s: String) -> Boolean

 

func IsAbs(s String) Boolean

Parameters:

  • s:

IsAbs (String): Boolean .NET, .NET Standard 2.0

 

class method IsAbs(s: String): Boolean

 

static Boolean IsAbs(String s)

 

static func IsAbs(_ s: String) -> Boolean

 

func IsAbs(s String) Boolean

Parameters:

  • s:

Join

 

class method Join(params elem: array of string): string

 

static string Join(params string[] elem)

 

static func Join(_ elem: string...) -> string

 

func Join(elem []string) string

Parameters:

  • elem:

ListSeparator

 

class var ListSeparator: Char;

 

static Char ListSeparator

 

static var ListSeparator: Char

 

ListSeparator Char

Match

 

class method Match(pattern: string; name: string): tuple of (matched: Boolean, err: error)

 

static (Boolean matched, error err) Match(string pattern, string name)

 

static func Match(_ pattern: string, _ name: string) -> (matched:Boolean, err:error)

 

func Match(pattern string, name string) (matched Boolean, err error)

Parameters:

  • pattern:
  • name:

Rel

 

// .NET, Island
class method Rel(basepath: string; targpath: string): tuple of (string, error)
// .NET Standard 2.0
class method Rel(basepath: string; targpath: string): ValueTuple<string, error>

 

// .NET, Island
static (string, error) Rel(string basepath, string targpath)
// .NET Standard 2.0
static ValueTuple<string, error> Rel(string basepath, string targpath)

 

// .NET, Island
static func Rel(_ basepath: string, _ targpath: string) -> (string, error)
// .NET Standard 2.0
static func Rel(_ basepath: string, _ targpath: string) -> ValueTuple<string, error>

 

// .NET, Island
func Rel(basepath string, targpath string) (string, error)
// .NET Standard 2.0
func Rel(basepath string, targpath string) ValueTuple<string, error>

Parameters:

  • basepath:
  • targpath:

Separator

 

class var Separator: Char;

 

static Char Separator

 

static var Separator: Char

 

Separator Char

SkipDir

 

class var SkipDir: error;

 

static error SkipDir

 

static var SkipDir: error

 

SkipDir error

Split

 

class method Split(path: string): tuple of (dir: string, file: string)

 

static (string dir, string file) Split(string path)

 

static func Split(_ path: string) -> (dir:string, file:string)

 

func Split(path string) (dir string, file string)

Parameters:

  • path:

SplitList

 

class method SplitList(path: string): Slice<string>

 

static Slice<string> SplitList(string path)

 

static func SplitList(_ path: string) -> Slice<string>

 

func SplitList(path string) Slice<string>

Parameters:

  • path:

ToSlash

 

class method ToSlash(path: string): string

 

static string ToSlash(string path)

 

static func ToSlash(_ path: string) -> string

 

func ToSlash(path string) string

Parameters:

  • path:

VolumeName

 

class method VolumeName(path: string): string

 

static string VolumeName(string path)

 

static func VolumeName(_ path: string) -> string

 

func VolumeName(path string) string

Parameters:

  • path:

Walk

 

class method Walk(root: string; walkFn: WalkFunc): error

 

static error Walk(string root, WalkFunc walkFn)

 

static func Walk(_ root: string, _ walkFn: WalkFunc) -> error

 

func Walk(root string, walkFn WalkFunc) error

Parameters:

  • root:
  • walkFn:

 

ErrBadPattern

 

class var ErrBadPattern: error;

 

static error ErrBadPattern

 

static var ErrBadPattern: error

 

ErrBadPattern error

ListSeparator

 

class var ListSeparator: Char;

 

static Char ListSeparator

 

static var ListSeparator: Char

 

ListSeparator Char

Separator

 

class var Separator: Char;

 

static Char Separator

 

static var Separator: Char

 

Separator Char

SkipDir

 

class var SkipDir: error;

 

static error SkipDir

 

static var SkipDir: error

 

SkipDir error

 

Abs

 

// .NET, Island
class method Abs(path: string): tuple of (string, error)
// .NET Standard 2.0
class method Abs(path: string): ValueTuple<string, error>

 

// .NET, Island
static (string, error) Abs(string path)
// .NET Standard 2.0
static ValueTuple<string, error> Abs(string path)

 

// .NET, Island
static func Abs(_ path: string) -> (string, error)
// .NET Standard 2.0
static func Abs(_ path: string) -> ValueTuple<string, error>

 

// .NET, Island
func Abs(path string) (string, error)
// .NET Standard 2.0
func Abs(path string) ValueTuple<string, error>

Parameters:

  • path:

Base

 

class method Base(path: string): string

 

static string Base(string path)

 

static func Base(_ path: string) -> string

 

func Base(path string) string

Parameters:

  • path:

Clean

 

class method Clean(path: string): string

 

static string Clean(string path)

 

static func Clean(_ path: string) -> string

 

func Clean(path string) string

Parameters:

  • path:

Dir

 

class method Dir(path: string): string

 

static string Dir(string path)

 

static func Dir(_ path: string) -> string

 

func Dir(path string) string

Parameters:

  • path:

EvalSymlinks

 

// .NET, Island
class method EvalSymlinks(path: string): tuple of (string, error)
// .NET Standard 2.0
class method EvalSymlinks(path: string): ValueTuple<string, error>

 

// .NET, Island
static (string, error) EvalSymlinks(string path)
// .NET Standard 2.0
static ValueTuple<string, error> EvalSymlinks(string path)

 

// .NET, Island
static func EvalSymlinks(_ path: string) -> (string, error)
// .NET Standard 2.0
static func EvalSymlinks(_ path: string) -> ValueTuple<string, error>

 

// .NET, Island
func EvalSymlinks(path string) (string, error)
// .NET Standard 2.0
func EvalSymlinks(path string) ValueTuple<string, error>

Parameters:

  • path:

Ext

 

class method Ext(path: string): string

 

static string Ext(string path)

 

static func Ext(_ path: string) -> string

 

func Ext(path string) string

Parameters:

  • path:

FromSlash

 

class method FromSlash(path: string): string

 

static string FromSlash(string path)

 

static func FromSlash(_ path: string) -> string

 

func FromSlash(path string) string

Parameters:

  • path:

Glob

 

class method Glob(pattern: string): tuple of (matches: Slice<string>, err: error)

 

static (Slice<string> matches, error err) Glob(string pattern)

 

static func Glob(_ pattern: string) -> (matches:Slice<string>, err:error)

 

func Glob(pattern string) (matches Slice<string>, err error)

Parameters:

  • pattern:

IsAbs (String): Boolean Island

 

class method IsAbs(s: String): Boolean

 

static Boolean IsAbs(String s)

 

static func IsAbs(_ s: String) -> Boolean

 

func IsAbs(s String) Boolean

Parameters:

  • s:

IsAbs (String): Boolean .NET, .NET Standard 2.0

 

class method IsAbs(s: String): Boolean

 

static Boolean IsAbs(String s)

 

static func IsAbs(_ s: String) -> Boolean

 

func IsAbs(s String) Boolean

Parameters:

  • s:

Join

 

class method Join(params elem: array of string): string

 

static string Join(params string[] elem)

 

static func Join(_ elem: string...) -> string

 

func Join(elem []string) string

Parameters:

  • elem:

Match

 

class method Match(pattern: string; name: string): tuple of (matched: Boolean, err: error)

 

static (Boolean matched, error err) Match(string pattern, string name)

 

static func Match(_ pattern: string, _ name: string) -> (matched:Boolean, err:error)

 

func Match(pattern string, name string) (matched Boolean, err error)

Parameters:

  • pattern:
  • name:

Rel

 

// .NET, Island
class method Rel(basepath: string; targpath: string): tuple of (string, error)
// .NET Standard 2.0
class method Rel(basepath: string; targpath: string): ValueTuple<string, error>

 

// .NET, Island
static (string, error) Rel(string basepath, string targpath)
// .NET Standard 2.0
static ValueTuple<string, error> Rel(string basepath, string targpath)

 

// .NET, Island
static func Rel(_ basepath: string, _ targpath: string) -> (string, error)
// .NET Standard 2.0
static func Rel(_ basepath: string, _ targpath: string) -> ValueTuple<string, error>

 

// .NET, Island
func Rel(basepath string, targpath string) (string, error)
// .NET Standard 2.0
func Rel(basepath string, targpath string) ValueTuple<string, error>

Parameters:

  • basepath:
  • targpath:

Split

 

class method Split(path: string): tuple of (dir: string, file: string)

 

static (string dir, string file) Split(string path)

 

static func Split(_ path: string) -> (dir:string, file:string)

 

func Split(path string) (dir string, file string)

Parameters:

  • path:

SplitList

 

class method SplitList(path: string): Slice<string>

 

static Slice<string> SplitList(string path)

 

static func SplitList(_ path: string) -> Slice<string>

 

func SplitList(path string) Slice<string>

Parameters:

  • path:

ToSlash

 

class method ToSlash(path: string): string

 

static string ToSlash(string path)

 

static func ToSlash(_ path: string) -> string

 

func ToSlash(path string) string

Parameters:

  • path:

VolumeName

 

class method VolumeName(path: string): string

 

static string VolumeName(string path)

 

static func VolumeName(_ path: string) -> string

 

func VolumeName(path string) string

Parameters:

  • path:

Walk

 

class method Walk(root: string; walkFn: WalkFunc): error

 

static error Walk(string root, WalkFunc walkFn)

 

static func Walk(_ root: string, _ walkFn: WalkFunc) -> error

 

func Walk(root string, walkFn WalkFunc) error

Parameters:

  • root:
  • walkFn: