Use a separate variable name for absolutePath of the file in question so as to not conflict with other prats of the function.