renames file to path