Method return file path instead of status