vsphere/internal/helper/virtualdisk/virtual_disk_helper.go
func IsVmdkDatastorePath(p string) bool {
	dp, success := DatastorePathFromString(p)
	if !success {
		log.Printf("[DEBUG] IsVmdkDatastorePath: %q is not a datastore path", p)
		return false
	}
	isVMDK := dp.IsVMDK()
	log.Printf("[DEBUG] IsVmdkDatastorePath: %q %s a datastore path", p, structure.LogCond(isVMDK, "is", "is not"))
	return isVMDK
}
func IsVmdkDatastorePath(p string) bool {
	dp, success := DatastorePathFromString(p)
	if !success {
		log.Printf("[DEBUG] IsVmdkDatastorePath: %q is not a datastore path", p)
		return false
	}
	isVMDK := dp.IsVMDK()
	log.Printf("[DEBUG] IsVmdkDatastorePath: %q %s a datastore path", p, structure.LogCond(isVMDK, "is", "is not"))
	return isVMDK
}
func IsVmdkDatastorePath ( p string ) bool { dp , success := DatastorePathFromString ( p ) if ! success { log . Printf ( " " , p ) return false } isVMDK := dp . IsVMDK ( ) log . Printf ( " " , p , structure . LogCond ( isVMDK , " " , " " ) ) return isVMDK }
// IsVmdkDatastorePath ensures that a string can be parsed as a datastore path
// pointing to a virtual disk. This only checks the validity of the path, not
// whether or not the file exists.
IsVmdkDatastorePath ensures that a string can be parsed as a datastore path pointing to a virtual disk . This only checks the validity of the path not whether or not the file exists .