Select Git revision
-
Md. Alim Ul Karim authored
hotfix/v0.6.2 : "Added integrated tests" "Fix chmod compare and verify issues" "new default methods or stirngs" "GetPathExistStat" hotfix/v0.6.2 : "Added integrated tests" "Fix chmod compare and verify issues" "new default methods or stirngs" "GetPathExistStat" ## Analysis  ## All Passing Tests  See merge request !52
Md. Alim Ul Karim authoredhotfix/v0.6.2 : "Added integrated tests" "Fix chmod compare and verify issues" "new default methods or stirngs" "GetPathExistStat" hotfix/v0.6.2 : "Added integrated tests" "Fix chmod compare and verify issues" "new default methods or stirngs" "GetPathExistStat" ## Analysis  ## All Passing Tests  See merge request !52
IsDirectory.go 183 B
package chmodhelper
import "os"
func IsDirectory(location string) bool {
fileInfo, err := os.Stat(location)
if os.IsNotExist(err) {
return false
}
return fileInfo.IsDir()
}