added trailing / for dir, not file