You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: name.go
    path of file: ./repos/photoprism/pkg/fs
    
    the code of the file until where you have to start completion: package fs

import (
	"fmt"
	"os"
	"path/filepath"
	"strings"
)

// FileName returns the relative filename with the same base and a given extension in a directory.
func FileName(fileName, dirName, baseDir, fileExt string) string {
	dir := filepath.Dir(fileName)

	if dirNa
    
func FileNameHidden(name string) bool {
	if len(name) == 0 {
		return false
	}

	name = filepath.Base(name)

	// Hidden files and folders starting with "." or "@" should be ignored.
	switch name[0:1] {
	case ".", "@":
		return true
	}

	if len(name) == 1 {
		return false
	}

	// File paths starting with _. and __ like __MACOSX should be ignored.
	switch name[0:2] {
	case "_.", "__":
		return true
	}

	return false
}