path should be to directory, not file