Pushing folders are treated as an empty file. Pulling folders causes a JS error because it think's it is a file. Need to identify if it's a dir or file and if it's a dir, create tree object on Github (pushing) or create folder on server (pulling).