mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-13 20:18:52 +02:00
13 lines
219 B
Go
13 lines
219 B
Go
package utils
|
|
|
|
import "os"
|
|
|
|
// IsValidFolder checks if the provided path is a valid directory
|
|
func IsValidFolder(path string) bool {
|
|
info, err := os.Stat(path)
|
|
if err != nil {
|
|
return false
|
|
}
|
|
return info.IsDir()
|
|
}
|