files

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Internal Package for file related utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFileExist

func IsFileExist(path string) bool

Check the file is exist or not.

Please note that this function will not check filepath valid or not. Developer should use IsFileValid() instead.

func IsPathValid

func IsPathValid(path string) bool

Check filepath is valid or not.

This method will only ignore is actually exist or not, or any permission error, focus on filepath is valid character or not.

func IsSupportedImg added in v0.10.0

func IsSupportedImg(filename string) bool

Check if image file extension is supported.

func MoveFile

func MoveFile(target, dest string) error

Move File from target to dest.

This function will create all necessary folder & file that necessary to copy.

func TrimExt

func TrimExt(fileName string) string

Get the filename, without the file extension. This method is a short-hand for getting filename.

The Filename should be Base element of path, but not a path which contains parent directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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