osutil

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ModeUserRW = 0600 // rw-------
View Source
const ModeUserRWX = 0700 // rwx------
View Source
const ModeUserRWXGroupRX = 0750 // rwxr-x---

Variables

This section is empty.

Functions

func ForceRename

func ForceRename(oldPath, newPath string) error

Moves a file or directory from one path to a new path.

NOTE: This will overwrite any file or directory which already exists at the 'newPath' parameter.

func ModeOf

func ModeOf(path string) (fs.FileMode, error)

ModeOf returns the file mode of the specified file.

func SizeOf

func SizeOf(path string) (uint64, error)

SizeOf returns the size of the specified file in bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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