Almost got file sharing working. Too bad it's all WRONG.