FileSystem

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.golang.org.x.net.webdav
  • Platforms: .NET, .NET Standard 2.0, Island

Required Methods


Mkdir

 

method Mkdir(ctx: Context; name: string; perm: FileMode): error

 

error Mkdir(Context ctx, string name, FileMode perm)

 

func Mkdir(_ ctx: Context, _ name: string, _ perm: FileMode) -> error

 

func Mkdir(ctx Context, name string, perm FileMode) error

 

Function Mkdir(ctx As Context, name As string, perm As FileMode) As error

Parameters:

  • ctx:
  • name:
  • perm:

OpenFile

 

method OpenFile(ctx: Context; name: string; flag: int; perm: FileMode): tuple of (File, error)

 

(File, error) OpenFile(Context ctx, string name, int flag, FileMode perm)

 

func OpenFile(_ ctx: Context, _ name: string, _ flag: int, _ perm: FileMode) -> (File, error)

 

func OpenFile(ctx Context, name string, flag int, perm FileMode) tuple of (File, error)

 

Function OpenFile(ctx As Context, name As string, flag As int, perm As FileMode) As Tuple (Of File, error)

Parameters:

  • ctx:
  • name:
  • flag:
  • perm:

RemoveAll

 

method RemoveAll(ctx: Context; name: string): error

 

error RemoveAll(Context ctx, string name)

 

func RemoveAll(_ ctx: Context, _ name: string) -> error

 

func RemoveAll(ctx Context, name string) error

 

Function RemoveAll(ctx As Context, name As string) As error

Parameters:

  • ctx:
  • name:

Rename

 

method Rename(ctx: Context; oldName: string; newName: string): error

 

error Rename(Context ctx, string oldName, string newName)

 

func Rename(_ ctx: Context, _ oldName: string, _ newName: string) -> error

 

func Rename(ctx Context, oldName string, newName string) error

 

Function Rename(ctx As Context, oldName As string, newName As string) As error

Parameters:

  • ctx:
  • oldName:
  • newName:

Stat

 

method Stat(ctx: Context; name: string): tuple of (FileInfo, error)

 

(FileInfo, error) Stat(Context ctx, string name)

 

func Stat(_ ctx: Context, _ name: string) -> (FileInfo, error)

 

func Stat(ctx Context, name string) tuple of (FileInfo, error)

 

Function Stat(ctx As Context, name As string) As Tuple (Of FileInfo, error)

Parameters:

  • ctx:
  • name: