Movatterモバイル変換


[0]ホーム

URL:


fsutil

package
v0.1.0Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License:Apache-2.0Imports:9Imported by:8

Details

Repository

github.com/no-src/nsgo

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcCreateFile

func CreateFile(namestring) (*os.File,error)

CreateFile create a file without truncate

funcFileExist

func FileExist(pathstring) (existbool, errerror)

FileExist is file Exist

funcGetFileTime

func GetFileTime(pathstring) (cTimetime.Time, aTimetime.Time, mTimetime.Time, errerror)

GetFileTime get the creation time, last access time, last modify time of the path

funcGetFileTimeBySys

func GetFileTimeBySys(sysany) (cTimetime.Time, aTimetime.Time, mTimetime.Time, errerror)

GetFileTimeBySys get the creation time, last access time, last modify time of the FileInfo.Sys()

funcIsDir

func IsDir(pathstring) (bool,error)

IsDir the path is directory or not

funcIsEOF

func IsEOF(errerror)bool

IsEOF whether the error is io.EOF

funcIsNonEOF

func IsNonEOF(errerror)bool

IsNonEOF whether the error is not io.EOF and is not nil

funcIsSub

func IsSub(parent, childstring) (bool,error)

IsSub whether it is a subdirectory of the parent

funcIsSymlink

func IsSymlink(pathstring) (bool,error)

IsSymlink the path is a symbolic link or not

funcIsSymlinkMode

func IsSymlinkMode(modefs.FileMode)bool

IsSymlinkMode check the mode is a symbolic link or not

funcIsSymlinkSupported

func IsSymlinkSupported()bool

IsSymlinkSupported checks if the system supports symbolic links

funcOpenRWFile

func OpenRWFile(namestring) (*os.File,error)

OpenRWFile open a file with read write mode

funcReadlink

func Readlink(namestring) (string,error)

Readlink returns the destination of the named symbolic link

funcSafePath

func SafePath(pathstring)string

SafePath encode some special characters for the path like "?", "#" etc.

funcSymlink

func Symlink(oldname, newnamestring)error

Symlink create a symbolic link

funcSymlinkText

func SymlinkText(realPathstring)string

SymlinkText build custom symlink text content

Types

typeGetFileTimeFunc

type GetFileTimeFunc func(pathstring) (cTimetime.Time, aTimetime.Time, mTimetime.Time, errerror)

GetFileTimeFunc the function prototype of GetFileTime

typeIsDirFunc

type IsDirFunc func(pathstring) (bool,error)

IsDirFunc the function prototype of IsDir

typeStatFunc

type StatFunc func(namestring) (fs.FileInfo,error)

StatFunc the function prototype of os.Stat

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp