DirNameFromAppName: Accept a trailing '/'.
@@ -36,7 +36,7 @@ func AppNameFromDir(dirName string) string {
// DirNameFromAppName takes an application name and returns the
// corresponding directory name
func DirNameFromAppName(appName string) string {
- if strings.HasSuffix(appName, AppExtension) {
+ if strings.HasSuffix(strings.TrimSuffix(appName, "/"), AppExtension) {
return appName
}
return appName + AppExtension
