Collection names now come from file paths

Checked if folder is empty and is a directory