(fp string)
| 1034 | } |
| 1035 | |
| 1036 | func FolderExists(fp string) bool { |
| 1037 | fp = strings.TrimSpace(fp) |
| 1038 | fsInfo, err := os.Stat(fp) |
| 1039 | |
| 1040 | if (err != nil && !os.IsExist(err)) || !fsInfo.IsDir() { |
| 1041 | return false |
| 1042 | } |
| 1043 | |
| 1044 | return true |
| 1045 | } |
| 1046 | |
| 1047 | // FilesinDirectory lists the files in a directory that have a filename as the base. |
| 1048 | func FilesInDirectory(dir string, prefix string) []string { |
no outgoing calls
no test coverage detected