Add function to copy buffer file path