switching server over to Echo, setting up server struct
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user