dwpath

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: GPL-3.0 Imports: 3 Imported by: 2

README

DwPath

Suatu modul untuk mempermudah pengecekan apakah file/direktori ada atau tidak.

Mengecek keberadaan File
exists, _, _ := dwpath.IsFileExists("/home/agungdhewe/filesaya.txt")
if !exists {
	fmt.Println("file tidak ditemukan")
}
Mengecek keberadaan direktori
exists, _ := dwpath.IsDirectoryExists("/Volumes/Development/agungdhewe")
if !exists {
	fmt.Println("direktori tidak ditemukan")
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirectoryExists

func IsDirectoryExists(dir string) (bool, error)

func IsFileExists

func IsFileExists(path string) (bool, fs.FileInfo, error)

func IsPathExists

func IsPathExists(path string) (bool, fs.FileInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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