switching server over to Echo, setting up server struct

This commit is contained in:
2020-06-05 23:32:31 -04:00
parent db2221c515
commit b015680962
7 changed files with 179 additions and 53 deletions

View File

@@ -49,10 +49,13 @@ func validateCompress(conf *Gvcconfig) error {
for i, folder := range compress.Folders {
file, err := os.Stat(folder) // TODO: check to see if it returns ABS or not, might need to convert
if err != nil {
fmt.Println("unable to find folder listed in array, removing it: ", folder)
compress.Folders[i] = compress.Folders[len(compress.Folders)-1]
continue
}
// if err != nil { //TODO: Don't think we should see if it doesn't exits, it may exist in future
// fmt.Println("unable to find folder listed in array, removing it: ", folder)
// compress.Folders[i] = compress.Folders[len(compress.Folders)-1]
// continue
// }
fileType := file.Mode()
if fileType.IsRegular() { // Not a folder
fmt.Println("compressed folder in array is not actually a folder, moving it to file compress: ", folder)