Initial Type Detection

Initial edits attempting to be able detect between folders and files