Copy the file path, just in case the string was mutable.