Inserting a file's relative path into a script by dragging and dropping from file viewer


Is there a way to copy or write the relative path of a file in the "Files" pane by clicking or dragging the file to the console or terminal? I've found some previous posts on the subject, but I don't know if it is currently a feature.