take path not filename