LS now checks if path is file. needs one tweak

Currently throws a warning, but functions properly. I want to ask
Hayhurst about it tomorrow