fsutil

package
v0.35.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFileExt

func DetectFileExt(fp string) string

func NormalizePathname added in v0.31.0

func NormalizePathname(s string) string

func RemoveAllInDir

func RemoveAllInDir(dirPath string) error

删除文件夹内的所有文件和子目录, 但不删除文件夹本身

Types

type File

type File struct {
	*os.File
}

func CreateFile

func CreateFile(fp string) (*File, error)

func (*File) CloseAndRemove

func (f *File) CloseAndRemove() error

func (*File) Remove

func (f *File) Remove() error

Jump to

Keyboard shortcuts

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