Documentation
¶
Overview ¶
Package fs provides Node.js fs module equivalents for transpiled TypeScript code.
Index ¶
- func AppendFileSync(path string, data string) error
- func ChmodSync(path string, mode os.FileMode) error
- func CopyFileSync(src, dst string) error
- func ExistsSync(path string) bool
- func MkdirSync(path string, recursive ...bool) error
- func ReadFileSync(path string, encoding ...string) (string, error)
- func ReadFileSyncBytes(path string) ([]byte, error)
- func ReaddirSync(path string) ([]string, error)
- func RealpathSync(path string) (string, error)
- func RenameSync(oldPath, newPath string) error
- func RmSync(path string, recursive ...bool) error
- func StatSync(path string) (os.FileInfo, error)
- func UnlinkSync(path string) error
- func WriteFileSync(path string, data string, mode ...os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFileSync ¶
AppendFileSync appends data to a file.
func CopyFileSync ¶
CopyFileSync copies a file from src to dst.
func ReadFileSync ¶
ReadFileSync reads a file and returns its contents as a string.
func ReadFileSyncBytes ¶
ReadFileSyncBytes reads a file and returns its contents as bytes.
func ReaddirSync ¶
ReaddirSync reads a directory and returns entry names.
func RealpathSync ¶
RealpathSync returns the resolved absolute path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.