bug: ensure path is not directory when pulling files.