fsops

package
v0.0.0-...-d0d5b52 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst. If src and dst files exist, and are the same, then return success. Otherise, attempt to create a hard link between the two files. If that fail, copy the file contents from src to dst.

func CopyFolder

func CopyFolder(source string, dest string) error

CopyFolder copies a folder's content to a (new one) another one

func CopyFolderContent

func CopyFolderContent(source string, dest string) error

CopyFolderContent copies a folder's content only

func CopyFolderContentLevels

func CopyFolderContentLevels(source string, dest string, levelsDeeper int) error

CopyFolderContentLevels copies a folder's content only

func CopyFolderLevels

func CopyFolderLevels(source string, dest string, levels int) error

CopyFolderLevels copies a folder's content to a (new one) another one

func GetFilename

func GetFilename(fullfilename string, withExt bool) string

GetFilename returns a filename

func IsDir

func IsDir(path string) bool

func IsFile

func IsFile(path string) bool

func IsFileContains

func IsFileContains(fpath string, test []byte) bool

func MoveFile

func MoveFile(source string, dest string) error

MoveFile moves a folder's content only

func MoveFolder

func MoveFolder(source string, dest string) error

MoveFolder moves a folder's content only

Types

This section is empty.

Jump to

Keyboard shortcuts

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